Skip to content

Conversation

@annaw245
Copy link

No description provided.


#outputs

Bs = ((mu*N*i)*(L+2*zp)*math.log((D+math.sqrt(pow(D, 2)+pow(L+2*zp, 2)))/(d+math.sqrt(pow(d, 2)+pow(L+2*zp, 2)))))/(2*L*(D-d)) + ((mu*N*i)*(L-2*zp)*math.log((D+math.sqrt(pow(D, 2)+pow(L-2*zp, 2)))/(d+math.sqrt(pow(d, 2)+pow(L-2*zp, 2)))))/(2*L*(D-d))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break down equation into parts


Bs = ((mu*N*i)*(L+2*zp)*math.log((D+math.sqrt(pow(D, 2)+pow(L+2*zp, 2)))/(d+math.sqrt(pow(d, 2)+pow(L+2*zp, 2)))))/(2*L*(D-d)) + ((mu*N*i)*(L-2*zp)*math.log((D+math.sqrt(pow(D, 2)+pow(L-2*zp, 2)))/(d+math.sqrt(pow(d, 2)+pow(L-2*zp, 2)))))/(2*L*(D-d))

a = (mu*N*i)*(L+2*zp)*math.log((D+math.sqrt(pow(D, 2)+pow(L+2*zp, 2)))/(d+math.sqrt(pow(d, 2)+pow(L+2*zp, 2))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more descriptive naming

Copy link
Collaborator

@hannahvsawiuk hannahvsawiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix naming to be more descriptive, more comments, and add in a test file

Copy link
Collaborator

@hannahvsawiuk hannahvsawiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good! We will move this to software soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants