1 страниц (5 вхождений)
Why I have an error? - Сообщения
When x1(t)=sin(t) - no problem.
When x1(t) is my function - an error!
See please the attach.
Three-Planets (Mathcad Block).sm (38 КиБ) скачан 194 раз(а).
When x1(t) is my function - an error!
See please the attach.
Three-Planets (Mathcad Block).sm (38 КиБ) скачан 194 раз(а).
This is because the solution functions are defined using interpolation. The interpolation functions have the X and Y vectors and the value of x as arguments. You try to provide a vector for x. Vectorize can handle only matrix arguments of the same size and successively calls the function with the j-th element of each vector.
So vectorize would require your x vector to be of the same size as the data vectors. Even in this case this probably will fail because the data would be reduced to a single X_i and Y_i.
Therefore, you have to use a loop.
![2024-01-29 10_30_32-SMath Solver - [Three-Planets (Mathcad Block).sm_].png](/ru-RU/files/Download/xaHeCk/2024-01-29-10_30_32-SMath-Solver---[Three-Planets-(Mathcad-Block).sm_].png)
So vectorize would require your x vector to be of the same size as the data vectors. Even in this case this probably will fail because the data would be reduced to a single X_i and Y_i.
Therefore, you have to use a loop.
![2024-01-29 10_30_32-SMath Solver - [Three-Planets (Mathcad Block).sm_].png](/ru-RU/files/Download/xaHeCk/2024-01-29-10_30_32-SMath-Solver---[Three-Planets-(Mathcad-Block).sm_].png)
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
WroteVectorize works fine in this document.
Three-Planets.sm (41 КиБ) скачан 196 раз(а).
Sorry - no. See please the attach
Three-Planets.sm (39 КиБ) скачан 216 раз(а).
WroteSorry - no. See please the attach
As I open your returned document,
both vectorize are red ... click on either one ... Bingo
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений