An error by calculation

An error by calculation - Help please - Messages

#1 Posted: 7/14/2023 3:41:16 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

See please the attach.
n<=21 - all OK!

n>21 - not OK

Why?

TubeMChS.sm (66 KiB) downloaded 26 time(s).
#2 Posted: 7/14/2023 3:58:39 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Указать численную оптимизацию.

An error by calculation (Ochkov).png
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Valery Ochkov 7/14/2023 4:09:00 AM
#3 Posted: 7/14/2023 4:09:23 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

Указать численную оптимизацию.

An error by calculation (Ochkov).png



Спасибо!
И много таких подводных камней в SMath?
#4 Posted: 7/14/2023 12:00:36 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

... И много таких подводных камней в SMath?



Hi. That's not SMath pitfalls. It's a feature: SMath remembers the intermediate steps of what it's calculating, unless you tell it to forget them, with eval. This also usually speeds up the following steps.

Clipboard01.png

Best regards.
Alvaro.
  • New Posts New Posts
  • No New Posts No New Posts