Custom Glyphs plugin (previously known as Functions' Extension)

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

#21 Posted: 5/27/2014 1:28:14 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 users liked this post
Radovan Omorjan 5/27/2014 3:18:00 PM, Martin Kraska 5/27/2014 3:19:00 PM, sergio 3/3/2016 3:32:00 PM
#22 Posted: 5/27/2014 3:45:11 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#23 Posted: 5/27/2014 7:35:21 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 Posted: 6/6/2014 11:03:51 AM
sergio

sergio

115 likes in 329 posts.

Group: 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 Posted: 6/6/2014 1:38:02 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
sergio 6/6/2014 4:14:00 PM
#26 Posted: 6/6/2014 1:56:58 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 users liked this post
sergio 6/6/2014 4:14:00 PM
#27 Posted: 6/6/2014 4:26:55 PM
sergio

sergio

115 likes in 329 posts.

Group: 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 Posted: 6/6/2014 6:21:08 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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.

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#29 Posted: 2/26/2015 7:59:33 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 users liked this post
ioan92 2/27/2015 10:59:00 AM
#30 Posted: 5/16/2015 4:53:29 AM
madan26

madan26

0 likes in 2 posts.

Group: User

exec1
exec2

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

Davide Carpi

1415 likes in 2872 posts.

Group: 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 Posted: 3/3/2016 3:04:47 PM
Ernesto

Ernesto

13 likes in 74 posts.

Group: 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 Posted: 3/3/2016 3:16:12 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 users liked this post
ioan92 3/3/2016 3:22:00 PM
  • New Posts New Posts
  • No New Posts No New Posts