Custom Functions plugin

Custom Functions plugin - functions: extended Max and Min, Unit of Measurement, Order of Magnitude - Сообщения

#101 Опубликовано: 08.11.2017 20:04:30
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 09.11.2017 08:45:09
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 29.10.2019 07:50:37
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 49 раз(а).

Показать спойлер

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#104 Опубликовано: 29.10.2019 13:27:07
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 03.11.2019 09:18:28
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 50 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#106 Опубликовано: 16.05.2020 09:24:11
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 КиБ) скачан 46 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#107 Опубликовано: 06.03.2021 12:29:00
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
sergio 06.03.2021 12:36:00, churichuro 06.03.2021 14:35:00
#108 Опубликовано: 24.03.2021 10:00:36
Jason McCool

Jason McCool

9 сообщений из 78 понравились пользователям.

Группа: 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 Опубликовано: 24.03.2021 11:49:52
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 37 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#110 Опубликовано: 24.03.2021 12:12:26
Jason McCool

Jason McCool

9 сообщений из 78 понравились пользователям.

Группа: 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 Опубликовано: 25.03.2021 09:56:13
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Jason McCool 25.03.2021 09:58:00
#112 Опубликовано: 27.03.2021 12:42:00
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
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 Опубликовано: 09.04.2021 10:42:14
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: 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 Опубликовано: 14.04.2021 10:07:31
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 19.05.2021 04:54:46
Martin_B

Martin_B

21 сообщений из 84 понравились пользователям.

Группа: 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 Опубликовано: 19.05.2021 06:28:41
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 22.05.2021 12:38:20
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
churichuro 22.05.2021 12:55:00, sergio 22.05.2021 14:54:00
#118 Опубликовано: 24.05.2021 11:40:10
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: User

Davide, I encountered this issue after the last update
SMathStudio_Desktop_ohKI5iNyZB.png
sergio
1 пользователям понравился этот пост
Davide Carpi 24.05.2021 12:29:00
#119 Опубликовано: 24.05.2021 12:28:36
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 24.05.2021 12:30:02
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

What about if you specify Bolean completely ?

Bolean.PNG
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений