1 страниц (6 вхождений)
divide by zero error - Сообщения
#1 Опубликовано: 31.01.2020 09:46:08
Hello to all.
I have a problem with the Smath function "dn_GearsBDF", it blocks the operation since giving me division by zero error.

How can I overcome this problem? MANOVRA (con parametri moto).sm (78 КиБ) скачан 36 раз(а).
I have a problem with the Smath function "dn_GearsBDF", it blocks the operation since giving me division by zero error.
How can I overcome this problem? MANOVRA (con parametri moto).sm (78 КиБ) скачан 36 раз(а).
#2 Опубликовано: 31.01.2020 10:11:20
Hello,
In dn_GearsBDF(init,0,end,100,D(x,Y)) replace zero with a small positive number (say 10^-10)
Regards,
Radovan
In dn_GearsBDF(init,0,end,100,D(x,Y)) replace zero with a small positive number (say 10^-10)
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 31.01.2020 12:14:51
Hi, thanks for the reply.
Instead if I have an error like: "value too big or too small for an Int32", how can I solve it?
Every time this error appears the program stops.

MANOVRA slalom (cinematica).sm (45 КиБ) скачан 29 раз(а).
Instead if I have an error like: "value too big or too small for an Int32", how can I solve it?
Every time this error appears the program stops.
MANOVRA slalom (cinematica).sm (45 КиБ) скачан 29 раз(а).
#4 Опубликовано: 31.01.2020 12:54:54
Always separate text from image or *.sm document,
as you did: can't reply quote !
as you did: can't reply quote !
#5 Опубликовано: 31.01.2020 13:12:46
WroteHi, thanks for the reply.
Instead if I have an error like: "value too big or too small for an Int32", how can I solve it?
Every time this error appears the program stops.
MANOVRA slalom (cinematica).sm (45 КиБ) скачан 29 раз(а).
10^10 was probably too small, you have to see, how small x can be for your derivative ψ''(x) still being defined. 0.01 works.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Опубликовано: 31.01.2020 14:30:34
... doctoring starts at red ... observe removing 10^14 at some trig [0].
lot more cleanup below ... can you write λ instead of l
MANOVRA slalom (cinematica).sm (52 КиБ) скачан 32 раз(а).
lot more cleanup below ... can you write λ instead of l
MANOVRA slalom (cinematica).sm (52 КиБ) скачан 32 раз(а).
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений