Custom Functions plugin - functions: extended Max and Min, Unit of Measurement, Order of Magnitude - Messages
- SS-2315: cases() doesn't allow creating third row;
- cases(3) used by default instead of cases(1);
Please note: if you have it, update of Custom Glyphs plugin is mandatory to make everything working fine (hidden functions removed, no more interactions between these plugins since this SS version)
- now it is possible to delete placeholders;
- adding placeholders now is "one-by-one" -> will be displayed a non-working cases() when you add or delete a placeholder;
Thank you!
File not found.File not found.
You are using 1*'m≤x≤5*'m that bracketed it is (1*'m≤x)≤5*'m; this obviously fails because when you insert 2'm, the result is (1)≤5*'m, hence the "units don't match" error; note that in the 2nd case the error is silent (you will have always 0≤5 or 1≤5).
If you want to have the ternary operator for readability, use lele(...) from the same plugin, that does the job in the right way for you (lele(B,A,C)=(A≤


- added image2rgb() / image2rgba();
File not found.File not found.
WroteHi. I guess that args for cases must to be unevaluated, like those if statements above. That's not only for errors, also for improve the speed of cases, which seems to eval all options before give the answer.
I suppose you may want to vote for SS-2316.
WroteHi. I guess that args for cases must to be unevaluated
I can't comment wrt your actual version. "cases" does not come with OFFicial 5346,
but is available with the UNofficial 5346. The gorgeous application [made work by
Davide] is the convolution. I tried "cases" in other work sheets and failed.
I toke the plunge to install 5935 ... that killed most of 5346 work sheets.
More nightly build, more incompatibility and less projects working.
Not enough collabs publish working projects.
Jean
What about plotting some discontinuous from your prefered nightly build ?
Jean
WroteThe function at() seems to have a problem similar to those observed in the maxima plugin.
Thank you Martin, I'll work on it ASAP.
WroteHi. I guess that args for cases must to be unevaluated, like those if statements above. That's not only for errors, also for improve the speed of cases, which seems to eval all options before give the answer.
As mentioned by Mike, this is addressed under SS-2316. As for now to evaluate only the function for the target condition you have to use eval() inside functions or numerical optimization outside functions.
I can't reproduce the first error shown in your picture, what plugin version are you running and in what SMath Studio?
Wrote
I can't reproduce the first error shown in your picture, what plugin version are you running and in what SMath Studio?
Hi Davide. In the attached, with background are all errors "division by zero" cases_error.sm (98 KiB) downloaded 112 time(s).in version 0.98 b5935 (last stable build, as I understand). Plugin version 1.1.5947.155599
Best regards.
WroteHi Davide. In the attached, with background are all errors "division by zero" cases_error.sm (98 KiB) downloaded 112 time(s).in version 0.98 b5935 (last stable build, as I understand). Plugin version 1.1.5947.155599
Thank you, I can reproduce. This is before the SS-2318 implementation. In this case, you have to switch the optimization to numeric (symbolic uses the boolean sum and SMath ignores that x is a function's argument). If the function is behind a line, you have to wrap it in a eval().
- fixed at(2) at(3);
- Unknowns now skips the "iterator" argument of diff/int/sum/product functions;
Sorry to be thick but I need some help with the cases function.
When I type case( or enter cases from the Insert Function… menu, only two lines are placed on the worksheet:
https://smath.com/wiki/GetFile.aspx?File=forum_attach%2fbdrunagle%2fcases_if_otherwise.png
and I don't know how to add extra if cases.
I've tried dragging corners, as for adding array rows, but with no success. How can I add more cases?
Smath: 0.98.5997
Custom Functions: 1.1.5981.13453
Custom Glyphs: 1.1.5973.13108
Many thanks
Brian
Best regards.
Alvaro.
WroteHi bdrunagle. Try to write , (or ; if you have this as separator) inside the placeholder of cases. This give you the new extra lines.
Correct

WroteBut be carefull, after inserted, can't be deleted. (Must to copy and paste to new one cases).
Since some nightly build it is possible (the cost is that you cannot insert a line at once, you have to press the argument separator twice)
Wrote
Since some nightly build it is possible (the cost is that you cannot insert a line at once, you have to press the argument separator twice)
That's seems a very cheap price.
Best regards.
Alvaro.
-
New Posts
-
No New Posts