Calling function that call functions

Calling function that call functions - 消息

#1 已发布: 2019/4/2 09:34:25
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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)已下载 1380 次。

Best regards.
Alvaro.
#2 已发布: 2019/4/2 10:09:35
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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位用户喜欢此帖子
Alvaro 2019/4/2 10:14:00
#3 已发布: 2019/4/2 10:13:54
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

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

Alvaro

1,139个赞,共1,805个帖子。

组: User

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

bound_ode.sm (16.89 KiB)已下载 1389 次。

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

Jean Giraud

983个赞,共6,866个帖子。

组: 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)已下载 1380 次。
#6 已发布: 2019/4/2 11:24:38
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... Ridder numerical derivative code.

Unsolved Ridder Deriv.sm (42.55 KiB)已下载 1392 次。
  • 有新帖
  • 无新帖