Custom Functions plugin

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

#101 已发布: 2017/11/8 20:04:30
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2017/11/9 08:45:09
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2019/10/29 07:50:37
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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)已下载 1607 次。

显示剧透

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

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2019/11/3 09:18:28
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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)已下载 1617 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#106 已发布: 2020/5/16 09:24:11
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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)已下载 1551 次。
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#107 已发布: 2021/3/6 12:29:00
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 2021/3/6 12:36:00, churichuro 2021/3/6 14:35:00
#108 已发布: 2021/3/24 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 已发布: 2021/3/24 11:49:52
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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)已下载 1630 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#110 已发布: 2021/3/24 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 已发布: 2021/3/25 09:56:13
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 2021/3/25 09:58:00
#112 已发布: 2021/3/27 12:42:00
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 2021/3/27 12:46:00, fedeghi 2021/3/27 13:51:00, NDTM Amarasekera 2021/3/27 23:50:00, Jason McCool 2021/3/29 09:30:00
#113 已发布: 2021/4/9 10:42:14
Ruben Sidranski

Ruben Sidranski

17个赞,共465个帖子。

组: 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 已发布: 2021/4/14 10:07:31
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2021/5/19 04:54:46
Martin_B

Martin_B

22个赞,共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 已发布: 2021/5/19 06:28:41
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2021/5/22 12:38:20
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 2021/5/22 12:55:00, sergio 2021/5/22 14:54:00
#118 已发布: 2021/5/24 11:40:10
sergio

sergio

127个赞,共342个帖子。

组: User

Davide, I encountered this issue after the last update
SMathStudio_Desktop_ohKI5iNyZB.png
sergio
1位用户喜欢此帖子
Davide Carpi 2021/5/24 12:29:00
#119 已发布: 2021/5/24 12:28:36
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2021/5/24 12:30:02
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

What about if you specify Bolean completely ?

Bolean.PNG
  • 有新帖
  • 无新帖