Calling function that call functions

Calling function that call functions - Messaggi

#1 Pubblicato: 02/04/2019 09:34:25
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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) scaricato 1370 volta(e).

Best regards.
Alvaro.
#2 Pubblicato: 02/04/2019 10:09:35
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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 utenti hanno apprezzato questo post
Alvaro 02/04/2019 10:14:00
#3 Pubblicato: 02/04/2019 10:13:54
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

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

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

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

bound_ode.sm (16,89 KiB) scaricato 1380 volta(e).

Thanks in advanced
Alvaro.
#5 Pubblicato: 02/04/2019 11:11:12
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1370 volta(e).
#6 Pubblicato: 02/04/2019 11:24:38
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... Ridder numerical derivative code.

Unsolved Ridder Deriv.sm (42,55 KiB) scaricato 1380 volta(e).
  • Nuovi post
  • Nessun nuovo post