Custom Functions plugin

Custom Functions plugin - functions: extended Max and Min, Unit of Measurement, Order of Magnitude - Messages

#101 Posted: 11/8/2017 8:04:30 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Thank you Alex, it's the same issue reported here, I'll try to fix it tomorrow
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#102 Posted: 11/9/2017 8:45:09 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Fix committed for the latest SS BETA; I'm aware there are still some drawing issues with cases due to something in SMath Studio itself.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#103 Posted: 10/29/2019 7:50:37 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

There is a problem with at() in build 7219:

It seems that the function at() isn't executed.
2019-10-29 11_39_22-SMath Studio - [Page1_].png
Materials E7-6.sm (10 KiB) downloaded 50 time(s).

Show Spoiler

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#104 Posted: 10/29/2019 1:27:07 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Thank you Martin, I will look at it as soon as I can.


edit: fixed in later versions SS
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#105 Posted: 11/3/2019 9:18:28 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

In the attached sheet, the conversion of solution results into definitions is demonstrated in two ways:
1. Usage of Assign(), a function made for this purpose in the Maxima plugin.
2. Usage of the substitution function at() from custom functions plugin, which by syntax should be good for the purpose.

It turns out that it makes a difference whether the Solve function is inside a line block or not. In the latter case, at() comes up with a strange error message.

Solve-3.png
Solve-3.sm (20 KiB) downloaded 51 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#106 Posted: 5/16/2020 9:24:11 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.7251 Nightly Build and later

- Unknowns() improved to don't match integration variable of int(4);

Unknowns.sm (18 KiB) downloaded 47 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#107 Posted: 3/6/2021 12:29:00 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.7691 Nightly Build and later

- [SS-4651] at() assignment improved to avoid unexpected substitutions when variables are given as replacements;


EDIT

either this should works correctly now:

Wrote

In the attached sheet, the conversion of solution results into definitions is demonstrated in two ways:
1. Usage of Assign(), a function made for this purpose in the Maxima plugin.
2. Usage of the substitution function at() from custom functions plugin, which by syntax should be good for the purpose.

It turns out that it makes a difference whether the Solve function is inside a line block or not. In the latter case, at() comes up with a strange error message.

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
sergio 3/6/2021 12:36:00 PM, churichuro 3/6/2021 2:35:00 PM
#108 Posted: 3/24/2021 10:00:36 AM
Jason McCool

Jason McCool

9 likes in 78 posts.

Group: User

Davide, thanks for developing this plugin; I use several function in here regularly. One that I just tried using that could be very useful for me is the Ceil function. In engineering we often want to always round up, so this would fit that bill well. However, it seems to only round up with respect to the base unit instead of the unit actually used. So instead of rounding a result up to the next inch (or millimeter), it rounds to the next foot (or meter). Would it be possible to account for the unit in that evaluation somehow?
Thanks,
Jason
SMath Ceil Function.png
Jason McCool Robbins Engineering Little Rock, AR, USA
#109 Posted: 3/24/2021 11:49:52 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Davide, thanks for developing this plugin; I use several function in here regularly. One that I just tried using that could be very useful for me is the Ceil function. In engineering we often want to always round up, so this would fit that bill well. However, it seems to only round up with respect to the base unit instead of the unit actually used. So instead of rounding a result up to the next inch (or millimeter), it rounds to the next foot (or meter). Would it be possible to account for the unit in that evaluation somehow?
Thanks,
Jason


Such a function would definitely need the target unit as input. In order to use this for display automatically, the plugin would need to suppress back-simplification to SI, which might require "Optimization None" on user side. A comprehensible operator form might put a placeholder for the unit at the index position to the lower left

ceil2.png
ceil2.sm (3 KiB) downloaded 39 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#110 Posted: 3/24/2021 12:12:26 PM
Jason McCool

Jason McCool

9 likes in 78 posts.

Group: User

Yes, that looks like it will do what I need. Good idea, Martin. Thanks!
And I like the idea of being able to define the output unit in the index position. That seems clear and streamlined as well.
SMath Ceil2 Function.png
Jason McCool Robbins Engineering Little Rock, AR, USA
#111 Posted: 3/25/2021 9:56:13 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

ceil2.png



useful, consistant, I like it... agreed. I'll add it in the next plugin update.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Jason McCool 3/25/2021 9:58:00 AM
#112 Posted: 3/27/2021 12:42:00 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.7739 Nightly Build and later

  • added Ceil(2);
  • added Floor(2);


2021-03-27 16_29_53-Window.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 users liked this post
sergio 3/27/2021 12:46:00 PM, fedeghi 3/27/2021 1:51:00 PM, NDTM Amarasekera 3/27/2021 11:50:00 PM, Jason McCool 3/29/2021 9:30:00 AM
#113 Posted: 4/9/2021 10:42:14 AM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Davide,
Since you are using a specialized output with the brackets and unit subscript, I would like to suggest ceil2 using a superscript for the unit. floor2 keeps the current subscript. Visually, this will help us "SEE" what was used in context to the equation/function
#114 Posted: 4/14/2021 10:07:31 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Davide,
Since you are using a specialized output with the brackets and unit subscript, I would like to suggest ceil2 using a superscript for the unit. floor2 keeps the current subscript. Visually, this will help us "SEE" what was used in context to the equation/function



I get the point but seems to me that might be confusing when exponentiations are involved


ceil2_a_.png

ceil2_b_.png

Also, the "base" could be a variable, or a simple number

2mm.png

2.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#115 Posted: 5/19/2021 4:54:46 AM
Martin_B

Martin_B

21 likes in 84 posts.

Group: User

Hi!

The var2str from custom functions plugin has problems with the new release:

appVersion(4)="0.99.7808.230"
var2str(1.7,2)="1,70"
var2str(1.7,"0.00"="0002E02"
var2str(1.7,"0,00"="0002C02"
#116 Posted: 5/19/2021 6:28:41 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Yes, this is related to changes in text encoding, I'll fix it ASAP.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#117 Posted: 5/22/2021 12:38:20 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.7808 and later

  • fixed encoding/decoding issues;
  • refactoring;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
churichuro 5/22/2021 12:55:00 PM, sergio 5/22/2021 2:54:00 PM
#118 Posted: 5/24/2021 11:40:10 AM
sergio

sergio

115 likes in 329 posts.

Group: User

Davide, I encountered this issue after the last update
SMathStudio_Desktop_ohKI5iNyZB.png
sergio
1 users liked this post
Davide Carpi 5/24/2021 12:29:00 PM
#119 Posted: 5/24/2021 12:28:36 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Confirmed. I'll fix it ASAP.


If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#120 Posted: 5/24/2021 12:30:02 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

What about if you specify Bolean completely ?

Bolean.PNG
  • New Posts New Posts
  • No New Posts No New Posts