ubsuny / 23-Homework6G4

Apache License 2.0
0 stars 11 forks source link

root_simple unable to find root for tanh(x) #33

Open WildJimmy opened 8 months ago

WildJimmy commented 8 months ago

I can't get root_simple to find the roots of tanh(x) when given a positive initial guess. It will always exceed the maximum number of steps. However, for negative guesses it is fine. Any ideas on how to resolve this without changing the algorithm? I'm a little confused because tan and tanh have roughly the same behavior around x = 0 and I do not have this issue with finding the roots of tan

Mosaddeq107 commented 8 months ago

@sharmistharanit Have you started doing this part?

sharmistharanit commented 8 months ago

I have not started yet.