Custom Glyphs plugin (previously known as Functions' Extension)

Custom Glyphs plugin (previously known as Functions' Extension) - 消息

#21 已发布: 2014/5/27 13:28:14
Davide Carpi

Davide Carpi

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

组: Moderator

PLUGIN UPDATED

- SS-83: custom skins for Maxima wrappers

The skin is applied to any Maxima(#) function (regardless the number of arguments)

As mentioned in the BTS, if is in Kay's plans (and there aren't bugs/things to change) he can copy the IPluginRegionDrawing code inside the Maxima MainClass.cs to have this feature embedded in the plugin.


Best regards,

Davide
2014-05-27 19_35_06-SMath Studio Desktop - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
3位用户喜欢此帖子
sergio 2016/3/3 15:32:00, Martin Kraska 2014/5/27 15:19:00, Radovan Omorjan 2014/5/27 15:18:00
#22 已发布: 2014/5/27 15:45:11
Martin Kraska

Martin Kraska

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

组: Moderator

Really nice, Davide. Thanks a lot.

I see two potential improvements with the size control of the outer parens
- They are a bit big for single line arguments
- They are a bit small for large expressions (smaller than the next inner level)

For outsiders it might be a bit difficult to find out what the symbol means and how to input it, but inside SMath you can inspect the help string by typing F12 when the function is marked. Would be fine to have the symbol on a side panel palette.

maxima1.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#23 已发布: 2014/5/27 19:35:21
Davide Carpi

Davide Carpi

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

组: Moderator

Wrote

Really nice, Davide. Thanks a lot.

I see two potential improvements with the size control of the outer parens
- They are a bit big for single line arguments
- They are a bit small for large expressions (smaller than the next inner level)


You're welcome. I've made a change about the brackets following your suggestions (plugin updated)

Wrote

For outsiders it might be a bit difficult to find out what the symbol means and how to input it, but inside SMath you can inspect the help string by typing F12 when the function is marked. Would be fine to have the symbol on a side panel palette.


This is a problem for any "dressed function" as you know (here range(#) is on the top of the hits).
AFAIK toolbars/palettes are hardcoded in SMath, so actually we can only ask in the BTS if is possible to unlock these features.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#24 已发布: 2014/6/6 11:03:51
sergio

sergio

127个赞,共342个帖子。

组: User

Ciao Davide,
I have a problem with the function 'cases' if used within the definition of a function that expects as a result numbers or strings.
[albumimg]353[/albumimg]

sergio
#25 已发布: 2014/6/6 13:38:02
Martin Kraska

Martin Kraska

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

组: Moderator

Wrote


I have a problem with the function 'cases' if used within the definition of a function that expects as a result numbers or strings.


cases() can only handle results that can be multiplied, as the function is expanded into a sum of the possible results multiplied by individual boolean statements, resulting in 0 or 1. Unless Andrey allows multiplication of strings (which could be very useful, at least multiplication by integers) or unless Davide changes the implementation of cases(), you are limited to numbers, matrices, lists and the like.

You can, however, wrap your strings into matrices and extract the element afterwards. That is not really a good solution, because outsiders won't comprehend the role of the index. Last not least this is also due to that one cannot tell the matrix brackets from ordinary algebraic ones

Edit: The above said applies only to numeric evaluation of the result. The solution is much easier, just switch the result optimization to "symbolic". This works no matter how the optimization setting of the definition is made.
cases2.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
sergio 2014/6/6 16:14:00
#26 已发布: 2014/6/6 13:56:58
Davide Carpi

Davide Carpi

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

组: Moderator

Ciao Sergio

switch the optimization of the [math eng]s.c(z)[/math] definition to "numeric" or "none". This uses a nested if/else structure instead of the symbolic sum (available just if you define your function as "symbolic"; this is shown also in the first post attachment).

In wide worksheets you can check fastly the definition optimization calling an evaluation using "none" as optimization:
- if you see the sum with booleans, you have defined the function as symbolic;
- if you see the cases function, you have defined the function as numeric/none.


best regards,

Davide
2014-06-06 20_14_48-SMath Studio Desktop - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
sergio 2014/6/6 16:14:00
#27 已发布: 2014/6/6 16:26:55
sergio

sergio

127个赞,共342个帖子。

组: User

thanks Davide and Martin,
in fact I often do not pay attention to this option (symbolic-numeric). It would be useful to be able to visually differentiate this aspect

sergio
#28 已发布: 2014/6/6 18:21:08
Martin Kraska

Martin Kraska

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

组: Moderator

Wrote

in fact I often do not pay attention to this option (symbolic-numeric). It would be useful to be able to visually differentiate this aspect


Yes, absolutely. You might consider voting for BTS issue SS-19.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#29 已发布: 2015/2/26 19:59:33
Davide Carpi

Davide Carpi

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

组: Moderator

Hello Ioan

I'm unsure on what is happening here, moving the cases outside the function it works correctly

Whatever is the problem, seems that eval() helps to bypass the issue :d
2015-02-26 23_50_08-SMath Studio Desktop - [case cases.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
ioan92 2015/2/27 10:59:00
#30 已发布: 2015/5/16 04:53:29
madan26

madan26

0个赞,共2个帖子。

组: User

exec1
exec2

I have solved this equation in sage math. Please guide me how to solve this equation in smath.
#31 已发布: 2015/5/16 05:57:00
Davide Carpi

Davide Carpi

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

组: Moderator

You can try using solve

Here an example based on your function (stripped off some decimals, just to make the example)


P.S. if your question is not related with a plugin in particular, the next time please open the question in a new thread in the Questions section
2015-05-16 10_57_15-SMath Studio Desktop - [solve.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#32 已发布: 2016/3/3 15:04:47
Ernesto

Ernesto

13个赞,共74个帖子。

组: User

How do you add lines to the cases function? I have just been copying the cases function from the example file in this thread, but those only have up to 4 lines. I need more lines for a problem I am working on.
#33 已发布: 2016/3/3 15:16:12
Davide Carpi

Davide Carpi

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

组: Moderator

PLUGIN UPDATED SMath Studio 0.97.5737 and later

- Project name changed;

Since this relase, this plugin will be used only to add glyphs to existing functions in third party packages (such as Maxima) or not yet implemented functions. Real functions (at, ternary booleans, cases, Kronecker, perc, permil) will be moved in the Custom Functions plugin. I think this is better in terms of organization of the plugins and less cucumbersome to understand from the user why some functions are in a plugin instead of another.

I'm trying to make the transition as smooth as possible (even if this was a beta plugin with much less downloads of the Custom Functions), thus all functions are still included in this plugin but hidden (no dynamic assistance, no glyphs, no more documented here)

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
ioan92 2016/3/3 15:22:00
#34 已发布: 2025/8/3 20:28:04
Martin Kraska

Martin Kraska

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

组: Moderator

I'd propose two custom glyphs:

The Macaulay bracket and the Mathcad column operator. The column operator has been requested elsewhere, I just put it here in the right thread.

image.png

It would be nice to reproduce these formulas directly in SMath.

Currently, it is already quite close but having it in the familiar way would be better.

image.png

QM-Linie.sm (128.43 KiB)已下载 1525 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2位用户喜欢此帖子
ioan92 2025/8/3 20:57:51, Alvaro 2025/8/3 22:35:30
#35 已发布: 2025/8/4 22:44:05
Davide Carpi

Davide Carpi

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

组: Moderator

They're both feasible as working functions (thus they would be part of Custom Functions in that case).

Maybe a custom col() could be made to accept negative arguments (f.e. -1 to extract the last column).
已编辑 2025/8/5 06:11:13
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#36 已发布: 2025/8/23 13:11:35
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Wrote

I'd propose two custom glyphs:

The Macaulay bracket and the Mathcad column operator. The column operator has been requested elsewhere, I just put it here in the right thread...



I use this function :

image.png

Is useful to model beams on this way:

image.png

Please, see the attached file

QVM.sm (23.19 KiB)已下载 1360 次。
1位用户喜欢此帖子
ioan92 2025/8/24 07:56:27
  • 有新帖
  • 无新帖