Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
brianberns
· 7y ago · 0 comments
The code snippet doesn't make sense to me:
a = 1/(1+7) b = 2*a+sqrt(a) c = atan(b)/(1+c) return c+2*d
Note that the assignment to 'c' depends on it already having a value?
Comments
[–]
kwccoin
7y ago
I suspect the 2nd "c" is "b" if you look a bit further the continuation. But as for the first "d" in return, no idea.
[–]
FridgeSeal
7y ago
I took this to be a chunk of some wider bit of code in which c and d were defined previously and we’re interested in this section in particular.
[–]
bigred100
7y ago
Use Newton’s method
[–]
latchkey
7y ago
... *d ?