Calling function that call functions

Calling function that call functions - Messages

#1 Posted: 4/2/2019 9:34:25 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. I can't call a function which uses a call for functions too. How to solve that? Example in the attached.

function_1v.sm (17 KiB) downloaded 40 time(s).

Best regards.
Alvaro.
#2 Posted: 4/2/2019 10:09:35 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I guess f(a) isn't recognized as a function in the call df(f(a)...) as f(a) evaluates to a number, not a function. Use df(f(x)... instead, with x being something undefined.

function_1v.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Alvaro Diaz Falconi 4/2/2019 10:14:00 AM
#3 Posted: 4/2/2019 10:13:54 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Martin. You're right! Thanks.
Best regards.
Alvaro.
#4 Posted: 4/2/2019 10:50:57 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. Again, here ... how to solve this other?

bound_ode.sm (16 KiB) downloaded 36 time(s).

Thanks in advanced
Alvaro.
#5 Posted: 4/2/2019 11:11:12 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Hi. I can't call a function which uses a call for functions too. How to solve that?


Hola Alvaro,
I understand what you are attempting, sorry: can't doctor quick.
IMHO, a better approach would be the coding of the Mathcad
numerical derivative, which returns as scalar as well.
The beginning of the code was given Mathcad 8 Pro.
It is in fact more advanced than the rough Newton as proposed.
If you are willing: I can retrieve this code.

Buenos dias ... Jean

Derivative erf(x).sm (6 KiB) downloaded 38 time(s).
#6 Posted: 4/2/2019 11:24:38 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... Ridder numerical derivative code.

Unsolved Ridder Deriv.sm (42 KiB) downloaded 42 time(s).
  • New Posts New Posts
  • No New Posts No New Posts