An error by calculation

An error by calculation - Help please - Messages

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

Valery Ochkov

64 likes in 670 posts.

Group: User

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

n>21 - not OK

Why?

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

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

1,532 likes in 1,838 posts.

Group: Moderator

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

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

Valery Ochkov

64 likes in 670 posts.

Group: User

Wrote

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

An error by calculation (Ochkov).png



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

Alvaro

1,078 likes in 1,749 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
  • No New Posts