Rank: Advanced Member Groups: Registered
Joined: 29/10/2019(UTC) Posts: 35 Location: Italy
|
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 (79kb) downloaded 12 time(s).
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello,
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!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 29/10/2019(UTC) Posts: 35 Location: Italy
|
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 (46kb) downloaded 10 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Always separate text from image or *.sm document, as you did: can't reply quote !
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,988 Was thanked: 1127 time(s) in 723 post(s)
|
Originally Posted by: Ale16595 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 (46kb) downloaded 10 time(s). 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. |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
... 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 (53kb) downloaded 12 time(s).
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.