Calling function that call functions

Calling function that call functions - Poruke

#1 Objavljeno: 2. 4. 2019. 09:34:25
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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) preuzeto 1396 put(ova).

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

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Alvaro 2. 4. 2019. 10:14:00
#3 Objavljeno: 2. 4. 2019. 10:13:54
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

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

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

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

bound_ode.sm (16,89 KiB) preuzeto 1406 put(ova).

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

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1408 put(ova).
#6 Objavljeno: 2. 4. 2019. 11:24:38
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... Ridder numerical derivative code.

Unsolved Ridder Deriv.sm (42,55 KiB) preuzeto 1414 put(ova).
  • Novi postovi
  • Nema novih postova