 Rank: Newbie
Groups: Registered
Joined: 09/09/2021(UTC) Posts: 6   Location: Michigan
|
I have found a low priority issue where special plots (e.g. text shown on the 2D plot) do not appear on the 2D plot when using an "if...else" domain definition. The Special Plots do show up if I use boolean domain definitions, however. I have attached a sample file here that should make it clear. I also tried submitting this to the bug tracker, but it appears I do not have the privileges to log into the bug tracker system. Thank you! SpecialPlotsBug.sm (9kb) downloaded 17 time(s).
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,799  Was thanked: 975 time(s) in 803 post(s)
|
If you declare the system is exact Bolean, set it exact from the onset plot 1 
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,076  Was thanked: 485 time(s) in 320 post(s)
|
Originally Posted by: Mr. Whiskers  I have found a low priority issue where special plots (e.g. text shown on the 2D plot) do not appear on the 2D plot when using an "if...else" domain definition. The Special Plots do show up if I use boolean domain definitions, however.
I have attached a sample file here that should make it clear.
I also tried submitting this to the bug tracker, but it appears I do not have the privileges to log into the bug tracker system.
Thank you! You can use cases() in Custom Functions Plugin for that purpose. Plotting, solve(), roots(), FindRoot() and various commands may don't like if/else. Sometimes an error can be fixed by using a line(), not in your example though. Recursive functions doesn't solve when line() and cases() used both, etc etc. These are bitter tricks/bugs, I tend to forgot them everytime. After struggling a while however I remember the "correct usage". Regards
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,943  Was thanked: 1103 time(s) in 704 post(s)
|
Would be interesting, why if() is not defined by default as boolean expression just like cases(). Is there any use case, where the original if() is better than the one defined with cases()? If not, then I propose to include re-definition of if() in the custom functions plugin. ![2022-03-21 22_18_08-SMath Solver - [SpecialPlotsBug.sm_].png](/forum/resource.ashx?a=43261&b=2) |
|
 1 user thanked mkraska for this useful post.
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,799  Was thanked: 975 time(s) in 803 post(s)
|
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,799  Was thanked: 975 time(s) in 803 post(s)
|
Examine more Bolean applications. Dolphin.sm (38kb) downloaded 5 time(s).
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,326  Was thanked: 807 time(s) in 509 post(s)
|
|
 1 user thanked Razonar for this useful post.
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,799  Was thanked: 975 time(s) in 803 post(s)
|
... doctored for convenience. Observe collected plot, easy to manage. Cheers ... Jean. SpecialPlotsBug DOCTORED.sm (11kb) downloaded 6 time(s).
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,799  Was thanked: 975 time(s) in 803 post(s)
|
... you make Bolean algo style for convenient command line.
|
|
|
|
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.