Custom Functions plugin

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

#101 Pubblicato: 08/11/2017 20:04:30
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 09/11/2017 08:45:09
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 29/10/2019 07:50:37
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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,32 KiB) scaricato 1599 volta(e).

Mostra spoiler

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#104 Pubblicato: 29/10/2019 13:27:07
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 03/11/2019 09:18:28
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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,06 KiB) scaricato 1605 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#106 Pubblicato: 16/05/2020 09:24:11
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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,63 KiB) scaricato 1541 volta(e).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#107 Pubblicato: 06/03/2021 12:29:00
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 utenti hanno apprezzato questo post
sergio 06/03/2021 12:36:00, churichuro 06/03/2021 14:35:00
#108 Pubblicato: 24/03/2021 10:00:36
Jason McCool

Jason McCool

9 apprezzamenti in 78 post.

Gruppo: 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 Pubblicato: 24/03/2021 11:49:52
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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,77 KiB) scaricato 1617 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#110 Pubblicato: 24/03/2021 12:12:26
Jason McCool

Jason McCool

9 apprezzamenti in 78 post.

Gruppo: 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 Pubblicato: 25/03/2021 09:56:13
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 utenti hanno apprezzato questo post
Jason McCool 25/03/2021 09:58:00
#112 Pubblicato: 27/03/2021 12:42:00
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 utenti hanno apprezzato questo post
sergio 27/03/2021 12:46:00, fedeghi 27/03/2021 13:51:00, NDTM Amarasekera 27/03/2021 23:50:00, Jason McCool 29/03/2021 09:30:00
#113 Pubblicato: 09/04/2021 10:42:14
Ruben Sidranski

Ruben Sidranski

17 apprezzamenti in 465 post.

Gruppo: 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 Pubblicato: 14/04/2021 10:07:31
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 19/05/2021 04:54:46
Martin_B

Martin_B

22 apprezzamenti in 84 post.

Gruppo: 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 Pubblicato: 19/05/2021 06:28:41
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 22/05/2021 12:38:20
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 utenti hanno apprezzato questo post
churichuro 22/05/2021 12:55:00, sergio 22/05/2021 14:54:00
#118 Pubblicato: 24/05/2021 11:40:10
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

Davide, I encountered this issue after the last update
SMathStudio_Desktop_ohKI5iNyZB.png
sergio
1 utenti hanno apprezzato questo post
Davide Carpi 24/05/2021 12:29:00
#119 Pubblicato: 24/05/2021 12:28:36
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 24/05/2021 12:30:02
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

What about if you specify Bolean completely ?

Bolean.PNG
  • Nuovi post
  • Nessun nuovo post