Custom Functions plugin - functions: extended Max and Min, Unit of Measurement, Order of Magnitude - Messages
#21 Posted: 2/10/2013 1:25:48 PM
I guess the problem is that in the example the variable V is not just a system but an expression involving systems. There was a sys2mat version with just replacing the "sys" in the string representation (num2str) by "mat". In the given case, this approach would fail.
Perhaps the function sys2mat should internally apply eval() and then do the replacement.
Martin
Perhaps the function sys2mat should internally apply eval() and then do the replacement.
Martin
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#22 Posted: 2/11/2013 6:11:20 PM
PLUGIN UPDATED
- fixed issue of sys2mat() involving sys() special features (many thanks to [userlink]mkraska[/userlink])
best regards,
w3b5urf3r
- fixed issue of sys2mat() involving sys() special features (many thanks to [userlink]mkraska[/userlink])
best regards,
w3b5urf3r
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
Martin Kraska 2/12/2013 5:55:00 PM
#23 Posted: 2/17/2013 7:40:28 AM
The mat2sys function seems to be limited to column matrices. This might be a feature rather than a bug. In the first case I would recommend to be more specific in the doc string ("Converts column matrices (vectors) to systems" ). Alternatively, the linear indexing feature could be used to flatten the matrix.

Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Radovan Omorjan 2/17/2013 7:59:00 AM
#24 Posted: 2/17/2013 2:45:16 PM
WroteThe mat2sys function seems to be limited to column matrices. This might be a feature rather than a bug. In the first case I would recommend to be more specific in the doc string ("Converts column matrices (vectors) to systems" ). Alternatively, the linear indexing feature could be used to flatten the matrix.
Hi Martin

Yes, actually mat2sys function is limited to column matrices (the function brutally changes "sys(" to "mat(", without checks).
An improvement will be available ASAP.
best regards,
w3b5urf3r
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
Martin Kraska 2/18/2013 5:58:00 AM
#25 Posted: 2/20/2013 11:56:19 AM
PLUGIN UPDATED
- mat2sys() now can handle also non-column matrices (nested or not)
- sys2mat() symbolical enhancements
regards,
w3b5urf3r
- mat2sys() now can handle also non-column matrices (nested or not)
- sys2mat() symbolical enhancements
regards,
w3b5urf3r
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 2/21/2013 6:44:00 AM
#26 Posted: 3/15/2013 7:05:31 AM
PLUGIN UPDATED
Plugin's Sources are moved to the SVN repository (I have added a link in the first post)
regards,
w3b5urf3r
![SMath Studio - [customFunctions_examples.sm].png](/en-US/file/ReMSsr/SMath-Studio---_customFunctions_examples_sm__png)
- added new texts functions:
- strtolower(1): converts all characters in a string to lowercase;
- strtoupper(1): converts all characters in a string to uppercase;
- ucfirst(1): converts the first characters in a string to uppercase;
- ucwords(1): converts the first characters of each word in a string to uppercase;
- strtolower(1): converts all characters in a string to lowercase;
- added norme(): unofficial patch of SMath Studio norme() function (BUG shown here);
- sys2mat(): fixed unexpected influence on input arguments.
Plugin's Sources are moved to the SVN repository (I have added a link in the first post)
regards,
w3b5urf3r
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
Martin Kraska 3/16/2013 3:24:00 PM, sergio 3/15/2013 9:36:00 AM, Radovan Omorjan 3/16/2013 3:19:00 AM
#27 Posted: 3/16/2013 3:59:58 PM
Hi Davide,
thanks for the update. I added the functions to the function reference in the handbook and also added a section on string functions.
The norme replacement is highly welcome. I just had a small problem, see attachment.
Just in case you are looking for distraction from real stuff like unit and systems proof solvers:
I'd vote for unit-proof versions of int(), Re() and Im() and arg().
Martin

thanks for the update. I added the functions to the function reference in the handbook and also added a section on string functions.
The norme replacement is highly welcome. I just had a small problem, see attachment.
Just in case you are looking for distraction from real stuff like unit and systems proof solvers:
I'd vote for unit-proof versions of int(), Re() and Im() and arg().
Martin
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#28 Posted: 3/16/2013 4:17:55 PM
Thank you Martin;
the issue is related with some SMath bug involving transpose and the linear indexing feature
... Tomorrow I'll look in the bug section to see if it has already been reported and I'll update the plugin with your formula
![SMath Studio - [bug.sm].png](/en-US/file/QggDnd/SMath-Studio---_bug_sm__png)
the issue is related with some SMath bug involving transpose and the linear indexing feature


If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#29 Posted: 3/17/2013 7:40:20 AM
PLUGIN UPDATED
- fixed norme() issue involving transpose and the linear indexing feature;
- enhancements of ucwords(): now accept all Unicode white spaces as separator of words.
best regards,
w3b5urf3r
- fixed norme() issue involving transpose and the linear indexing feature;
- enhancements of ucwords(): now accept all Unicode white spaces as separator of words.
best regards,
w3b5urf3r
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
Martin Kraska 3/17/2013 7:50:00 PM
#30 Posted: 4/16/2013 9:58:33 AM
Great job websurfer!
Would it be possible to change mat2sys such that it doesn't collapse nested matrices?
Please see attached
sys2mat_suggestion.sm (5 KiB) downloaded 111 time(s).
Would it be possible to change mat2sys such that it doesn't collapse nested matrices?
Please see attached
sys2mat_suggestion.sm (5 KiB) downloaded 111 time(s).
#31 Posted: 4/16/2013 11:14:06 AM
Wrote
Would it be possible to change sys2mat such that it doesn't collapse nested matrices?
That won't work as list nesting is not persistent:
[MATH lang=ENG]sys(sys(1,2,2,1),3,2,1)=sys(1,2,3,3,1)[/MATH]
mat2sys could, however, have an option to restrict the conversion to the outer level matrix and leave all entries as they are.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#32 Posted: 4/16/2013 11:35:06 AM
mkraska, you're right. sys2mat was a typo. Thanks!
#33 Posted: 4/23/2013 4:31:11 AM
#34 Posted: 4/23/2013 10:54:12 AM
Portable SMath with plugins updated.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#35 Posted: 6/4/2013 2:46:56 AM
A Nightly update for anyone are using SMath Studio 0.96.4902 (plugins -> online gallery)
- removed norme clone (not needed anymore)
- added not recursive [MATH eng]mat2sys.1(#)[/MATH]
- added not recursive [MATH eng]sys2mat.1(#)[/MATH]
best regards,
w3b5urf3r
customFunctions_examples.zip (4 KiB) downloaded 106 time(s).
- removed norme clone (not needed anymore)
- added not recursive [MATH eng]mat2sys.1(#)[/MATH]
- added not recursive [MATH eng]sys2mat.1(#)[/MATH]
best regards,
w3b5urf3r
customFunctions_examples.zip (4 KiB) downloaded 106 time(s).
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
Radovan Omorjan 6/4/2013 3:05:00 AM
#36 Posted: 12/27/2013 9:29:52 AM
mat2sys requires the argument to be literal matrices. Matrix-valued expressions need to be evaluated first either by assigning them to a variable or by wrapping them in eval(). A similar issue has been reported for sys2mat and has been solved.
I propose to transfer the solution to mat2sys.

I propose to transfer the solution to mat2sys.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 12/27/2013 8:24:00 PM
#37 Posted: 3/1/2014 12:12:08 PM
UPDATED
- new function: InterpBilinear()
- new function: GetType()
- mat2sys() improvements for 1x1 matrices
(examples attached in the first post)
![2014-03-01 17_13_27-SMath Studio Desktop - [CustomFunctions_examples.sm_].png](/en-US/file/k8Z4a4/2014-03-01-17_13_27-SMath-Studio-Desktop---_CustomFunctions_examples_sm___png)
- new function: InterpBilinear()
- new function: GetType()
- mat2sys() improvements for 1x1 matrices
(examples attached in the first post)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
#39 Posted: 6/23/2014 4:17:53 AM
Davide, try string.Join().
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Davide Carpi 6/23/2014 4:57:00 AM
-
New Posts
-
No New Posts