Custom Functions plugin

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

#101 Publicado: 8/11/2017 20:04:30
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 9/11/2017 8:45:09
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 29/10/2019 7:50:37
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1596 vez(es).

Mostrar spoiler

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

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 3/11/2019 9:18:28
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1602 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#106 Publicado: 16/5/2020 9:24:11
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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) descargado 1536 vez(es).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#107 Publicado: 6/3/2021 12:29:00
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 2 usuarios les gustó este mensaje
sergio 6/3/2021 12:36:00, churichuro 6/3/2021 14:35:00
#108 Publicado: 24/3/2021 10:00:36
Jason McCool

Jason McCool

9 me gusta en 78 mensajes.

Grupo: 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 Publicado: 24/3/2021 11:49:52
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1614 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#110 Publicado: 24/3/2021 12:12:26
Jason McCool

Jason McCool

9 me gusta en 78 mensajes.

Grupo: 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 Publicado: 25/3/2021 9:56:13
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Jason McCool 25/3/2021 9:58:00
#112 Publicado: 27/3/2021 12:42:00
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 4 usuarios les gustó este mensaje
sergio 27/3/2021 12:46:00, fedeghi 27/3/2021 13:51:00, NDTM Amarasekera 27/3/2021 23:50:00, Jason McCool 29/3/2021 9:30:00
#113 Publicado: 9/4/2021 10:42:14
Ruben Sidranski

Ruben Sidranski

17 me gusta en 465 mensajes.

Grupo: 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 Publicado: 14/4/2021 10:07:31
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 19/5/2021 4:54:46
Martin_B

Martin_B

22 me gusta en 84 mensajes.

Grupo: 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 Publicado: 19/5/2021 6:28:41
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 22/5/2021 12:38:20
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 2 usuarios les gustó este mensaje
churichuro 22/5/2021 12:55:00, sergio 22/5/2021 14:54:00
#118 Publicado: 24/5/2021 11:40:10
sergio

sergio

127 me gusta en 342 mensajes.

Grupo: User

Davide, I encountered this issue after the last update
SMathStudio_Desktop_ohKI5iNyZB.png
sergio
A 1 usuarios les gustó este mensaje
Davide Carpi 24/5/2021 12:29:00
#119 Publicado: 24/5/2021 12:28:36
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 24/5/2021 12:30:02
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

What about if you specify Bolean completely ?

Bolean.PNG
  • Nuevos mensajes
  • Sin mensajes nuevos