Timeline for answer to FindRoot and symbolic evaluation by Carl Lange
Current License: CC BY-SA 4.0
Post Revisions
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 7, 2019 at 15:58 | comment | added | Carl Lange | @MichaelE2 Thanks a lot for the clarification. I don't have an extremely strong knowledge of the scoping mechanisms myself! | |
| Jan 7, 2019 at 15:32 | comment | added | Patrick.B | I see. I thought that inside function definition, the variables are automatically made local. Thank you very much for the reply. | |
| Jan 7, 2019 at 15:31 | vote | accept | Patrick.B | ||
| Jan 7, 2019 at 13:57 | comment | added | Michael E2 |
The OP might note also that ftest[x] translates to the ODE y'[x] == x*y[x], which is quite a bit different than when unknown is a constant. However, in this case, as Carl points out, FindRoot replaces x by a number globally. This is what is meant by this line in the docs: "FindRoot...effectively uses Block to localize variables."
|
|
| Jan 7, 2019 at 13:03 | history | answered | Carl Lange | CC BY-SA 4.0 |