Calling function that call functions

Calling function that call functions - Messages

#1 Posted: 2019/4/2 09:34:25
Alvaro

Alvaro

1,106 likes in 1,784 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.56 KiB) downloaded 1068 time(s).

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

Martin Kraska

1,353 likes in 2,264 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
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 users liked this post
Alvaro 2019/4/2 10:14:00
#3 Posted: 2019/4/2 10:13:54
Alvaro

Alvaro

1,106 likes in 1,784 posts.

Group: User

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

Alvaro

1,106 likes in 1,784 posts.

Group: User

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

bound_ode.sm (16.89 KiB) downloaded 1057 time(s).

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

Jean Giraud

983 likes in 6,866 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.5 KiB) downloaded 1057 time(s).
#6 Posted: 2019/4/2 11:24:38
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

... Ridder numerical derivative code.

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