Ode solvers implementation

Ode solvers implementation - Сообщения

#1 Опубликовано: 29.11.2018 19:09:04
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Hi. I can't reproduce this in SMath.

Clipboard01.gif

Файл не найден.Файл не найден.

Best regards.
Alvaro.
2 пользователям понравился этот пост
Вячеслав Мезенцев 30.11.2018 03:25:00, Radovan Omorjan 30.11.2018 05:06:00
#2 Опубликовано: 29.11.2018 23:48:00
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I can't reproduce this in SMath.



1/1 in Smath 6179, proof: the snippet.

Cheers Alvaro

IntegrateODE.PNG

Integrate with ode solver.sm (29 КиБ) скачан 63 раз(а).
#3 Опубликовано: 29.11.2018 23:59:54
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I can't reproduce this in SMath.


You may not be able to implement the Mathcad bloc Given/ODEsolve.
ODEsolve is based on linterp. That is the first point.
The other point is that in Mathcad "linterp(x)" is a scalar function.
In Smath: ainterp, cinterp, linterp are simply interpolation fncts
They are not scalar functions. How does it reflects in ODEsolve ?
In Smath, ln(x), exp(x), ... are scalar from source code.
I tried to make cinterp scalar like in Mathcad, not to avail.

Please, persist on such a beautiful idea.

#4 Опубликовано: 30.11.2018 01:16:48
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I tried to make cinterp scalar like in Mathcad, not to avail.


This document was essentially designed to plot scalar the derivative on canvas,
as well as get a discrete export. Also included: the scalar quadratic.

Cheers ... Jean

Spline Deriv Infinitesimal.sm (70 КиБ) скачан 57 раз(а).


#5 Опубликовано: 30.11.2018 02:31:22
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote


You may not be able to implement the Mathcad bloc Given/ODEsolve.



Hi Jean. Actually not, just the solver, without the given.
I found how to call the odesolver, with D(x,y)=[f(x)].
This method is much more faster than the direct integration.
But remains the ln(0) error, which seems to be a bug in the odesolvers, because zero isn't in the domain range.

Clipboard01.gif

Integrate with ode solver.sm (10 КиБ) скачан 63 раз(а).

Best regards.
Alvaro.
1 пользователям понравился этот пост
Radovan Omorjan 30.11.2018 05:10:00
#6 Опубликовано: 30.11.2018 03:35:52
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

The zero point is used to determine the dimension of the vector D(t,x) at runtime (D(0, x0)). The size of the system must be determined for the further operation of the numerical algorithm. It seems that it would be correct to substitute the beginning of the interval. I will try to change this. Also, if possible, I will support the one-dimensional case.
Russia ☭ forever, Viacheslav N. Mezentsev
4 пользователям понравился этот пост
sergio 30.11.2018 05:43:00, frapuano 30.11.2018 05:37:00, Alvaro Diaz Falconi 30.11.2018 04:53:00, Radovan Omorjan 30.11.2018 05:06:00
#7 Опубликовано: 30.11.2018 05:01:06
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Thanks Viacheslav. It's amazing the effort that you and the others plugins developers put in enhance SMath, with very spectacular results.
Best regards.
Alvaro.
1 пользователям понравился этот пост
#8 Опубликовано: 30.11.2018 12:29:42
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Hi Jean. Actually not, just the solver, without the given.
I found how to call the odesolver, with D(x,y)=[f(x)].
This method is much more faster than the direct integration.
But remains the ln(0) error, which seems to be a bug in the odesolvers, because zero isn't in the domain range.



Buenos dias Alvaro !

ln(0) was introduced in Mathcad 11 soon after release via update [from recollection]
There is more in the attached, specially wrt parametric D(,,,).
Jean

ODEsolve.PNG

ODE 0_Model General.sm (29 КиБ) скачан 48 раз(а).


#9 Опубликовано: 30.11.2018 12:34:54
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

...

ODEsolve.PNG
#10 Опубликовано: 30.11.2018 15:36:38
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

... refreshed version wrt explore all solvers.

ODE 0_Model General.sm (38 КиБ) скачан 67 раз(а).
3 пользователям понравился этот пост
Alvaro Diaz Falconi 30.11.2018 15:54:00, frapuano 30.11.2018 17:58:00, Davide Carpi 03.12.2018 21:18:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений