solve() bugs

solve() bugs - Messages

#1 Posted: 6/9/2021 3:26:58 PM
overlord

overlord

558 likes in 1,335 posts.

Group: Moderator

Update of statement:
solve(), roots(), FindRoot() doesn't like if() function.
However, they can solve when cases() used instead of if().

Regards

2021-06-10_04-36.png
#2 Posted: 6/10/2021 11:36:37 PM
overlord

overlord

558 likes in 1,335 posts.

Group: Moderator

I have diagnosed the symptoms with solve bug.
Made a page about this and tried to explain with detail.

Regards

somebugs.sm (54 KiB) downloaded 135 time(s).
somebugs.pdf (522 KiB) downloaded 151 time(s).

somebugs.png
2 users liked this post
Andrey Ivashov 6/11/2021 4:06:00 AM, NDTM Amarasekera 6/11/2021 10:44:00 PM
#3 Posted: 6/11/2021 9:21:57 AM
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

Wrote

solve(), roots(), FindRoot() doesn't like if statement.
However, they can solve when cases() used instead of if().


if/else was reported SS 5346.
Davide added if/otherwise SS 6179
Often, the solve bloc is ~ exact, sometimes exact
At worst 4/5 decimals.
Always start true Bolean #≤# ...
often won't complain incomplete #<#
From recollection, only DeBoor needs incomplete.

SolveSolve.PNG
#4 Posted: 6/12/2021 11:39:19 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,005 likes in 1,677 posts.

Group: User

Wrote

Update of statement:
solve(), roots(), FindRoot() doesn't like if statement.
However, they can solve when cases() used instead of if().

Regards



Here some notes about my opinion of how to work with piecewise continuous functions.

Piecewise.sm (45 KiB) downloaded 137 time(s).
Piecewise.pdf (184 KiB) downloaded 161 time(s).

Best regards.
Alvaro
#5 Posted: 6/12/2021 3:24:02 PM
Jean Giraud

Jean Giraud

983 likes in 6,866 posts.

Group: User

IMHO, its logical solving piece wise discontinuous,
solve piece wise as well for productive classroom.

Page3 Solve Discontinuous.sm (5 KiB) downloaded 121 time(s).
#6 Posted: 6/12/2021 5:12:38 PM
overlord

overlord

558 likes in 1,335 posts.

Group: Moderator

There are other bugs too.

otherbugs.sm (13 KiB) downloaded 144 time(s).

otherbugs.png
  • New Posts New Posts
  • No New Posts No New Posts