4 ms·
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
by brianberns 7y ago
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?
- latchkey 7y ago... *d ?
- FridgeSeal 7y agoI 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.
- kwccoin 7y agoI suspect the 2nd "c" is "b" if you look a bit further the continuation. But as for the first "d" in return, no idea.
- bigred100 7y agoUse Newton’s method