Custom Functions plugin

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

#81 Posted: 6/10/2016 4:51:55 AM
Brian Runagle

Brian Runagle

13 likes in 27 posts.

Group: User

Thank you Alvaro, thank you Davide.

I must have tried a semicolon (my separator) before because I recognise what happens after the first press:
cases(■;■;■;■)
but didn't try pressing a second time!

It works for me now! :d

Thanks again

Brian
#82 Posted: 6/10/2016 11:14:59 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Hello Brian,

Visit this great apllication, if it works for you.
It does not work anymore for me in the UNofficial 5346 relaese.
I concluded from multiple observations that the UNofficial
release came with a TimeStamp of so long duration so that past
the "date" it does not work anymore. In Smath 5346, this work sheet
did work properly for several days in multiple PC ON/OFF, but not
anymore to my disatisfaction. I observed that one from Davide
and many more from Martin.

Jean

Convolution RC [Cases, Davide].sm (109 KiB) downloaded 101 time(s).
#83 Posted: 6/10/2016 12:42:58 PM
Brian Runagle

Brian Runagle

13 likes in 27 posts.

Group: User

Thanks for that Jean

I had a quick look at the "T - not defined" issue. There's a workaround for SMath 0.98.5997 by including the T variable in the h(t) definition, rather than in the plot (I think I've got the '-' signs right).
Convolution_RC update.sm (10 KiB) downloaded 98 time(s).

The formula in the plot doesn't look quite as you'd expect, but I think the answer's right.

Cheers

Brian
#84 Posted: 6/10/2016 1:40:57 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Oh ! Brian: you must complete the project.

Forum Convolution Brian.gif

#85 Posted: 6/11/2016 7:41:22 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

I have no issues in 0.97.5346; I don't think there are timestamps, 99% is something wrong in the plugins (missing or wrong for that SMath Studio version, or some conflict between plugins). cases() in the "unofficial portable" as it is when you download it is in the plugin Functions' Extensions 0.0.5261.2193; even updating Custom Functions to the latest available for 5346 I can run the worksheet correctly (this contains cases too, so there might be conflicts in some cases?).

In latest nightly build instead:
- I need the Brian's workaround to make it working the first plot (might be something in the 2D plot itself, since T is defined on the canvas);
- f(t) doesn't work anymore... I guess it might be something related to the "isUndefinedArgumetnSupported" af latest APIs, but seems there isn't a way to enable it for functions with an undefined number of arguments....

About Levemberg-Marquardt, you have to install NonlinearSolvers plugin manully form the extensions manager: http://screencast-o-matic.com/watch/cD1X6giD2p
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#86 Posted: 6/11/2016 9:44:19 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Wrote

might be something related to the "isUndefinedArgumetnSupported" af latest APIs, but seems there isn't a way to enable it for functions with an undefined number of arguments....



undefined_for_all.png
1 users liked this post
Davide Carpi 6/11/2016 11:26:00 AM
#87 Posted: 6/11/2016 11:33:26 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Thank you Andrey!

Unfortunately doesn't fix the issue...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#88 Posted: 9/13/2016 11:37:09 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.98.6096 Nightly Build only

- cases() inner logic refactored (now acts in the same way both for numerical and symbolical evaluation);
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 users liked this post
sergio 9/13/2016 11:39:00 AM, Andrey Ivashov 9/13/2016 11:49:00 AM, NDTM Amarasekera 9/13/2016 12:01:00 PM, frapuano 12/2/2016 1:17:00 PM
#89 Posted: 12/3/2016 12:46:30 PM
frapuano

frapuano

13 likes in 115 posts.

Group: User

Hi Davide,

I am trying to use the at(2) to try to evaluate a formula with several variables in one step.
OK this makes quite no sense ...but is in an attempt much more difficult to use a same symbolical equation obtained through a solve in different parts of a documents with different values of the variables without using each time the technique of the disable evaluation ( at least is the only way I have found to address this issue ... it doesn't exist a command that allow to reuse a symbolical equation after some assignment have been done to the values of the variables referenced in it ).

However in doing this I have seen a strange behaviour of the at(2) as herewith reported:

sshot-1.jpg

See my comments in the screenshot.

Best regards

Franco
#90 Posted: 12/3/2016 2:39:56 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Hi Franco

Wrote

but is in an attempt much more difficult to use a same symbolical equation obtained through a solve in different parts of a documents with different values of the variables without using each time the technique of the disable evaluation ( at least is the only way I have found to address this issue ... it doesn't exist a command that allow to reuse a symbolical equation after some assignment have been done to the values of the variables referenced in it ).


Once the variables are unknown at the definition of eta, you can reuse it any times you need, just define again the variables' values (search it in the Dynamic Assistant, you see that no numeric values are stored); use Clear(...) if you need to show again the unknown names.

2016-12-03 18_28_58-SMath Studio - [frapuano_at.sm_].png

Wrote

However in doing this I have seen a strange behaviour of the at(2) as herewith reported:


This is because in the second argument of at() you are using variables already defined, therefore at() reads "7700*'kg/{'m^3}≡7700*'kg/{'m^3}" instead of "ρ_sfera≡7700*'kg/{'m^3}" -> currently you have to use Clear(ρ_sfera); I plan to improve at() with progressive preprocessing, to reduce these kind of problems (and the error message too).

2016-12-03 18_38_50-SMath Studio - [frapuano_at.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
sergio 12/3/2016 4:32:00 PM
#91 Posted: 12/3/2016 11:08:01 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

If you set your formula "mathematically"
[in this case as an implicit expression],
you will solve anywhere in the document
for any of the variable.

Solve Maple Multivar.gif
#92 Posted: 12/4/2016 9:30:10 AM
frapuano

frapuano

13 likes in 115 posts.

Group: User

The problem Joan was not to get a formula using the solve command but use the result of the solve in several places on a worksheet ( always the same equation obviously ) as happens in a book when you are explaining something using always the same expression but applying different values on the RHS variables.
I was worried that after using the 1st time an expression it was no more "live" for further usage with different values.
This till the explanation of Davide I was using the trick of the "Disable evaluation" ..but this is not very elegant and useful.
( to tell the truth I have used the clear ..but probably positioning it in an incorrect way because the result was not like the one shown by Davide )

Best regards

Franco
#93 Posted: 12/5/2016 7:33:48 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

In mathematics, there is solving & solving. Smath is generous
by itself and in Maple companionship, quite convenient for
teaching/publishing/engineering.
Visit some "solving" applications attached. Report what does
work or not clear.

Jean

Solve Maple Implict Expr.sm (48 KiB) downloaded 93 time(s).
1 users liked this post
frapuano 12/6/2016 6:56:00 AM
#94 Posted: 3/13/2017 7:40:12 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED

- Abs() now is hidden from dynamic assistance and Functions dialog; consider this function deprecated and use vectorize(abs(...)) or a classic loop instead.

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#95 Posted: 3/13/2017 6:59:51 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I was worried that after using the 1st time an expression it was no more "live" for further usage with different values.



Not very clear as well as the remaining of your comment.
Smath functions are infinitely usable, including the solvers. Taking into account
what comes with the new demand and taking into account of that you are not repluging
something in a bloc that has turned red first
. Generally a failed solve bloc can't be
repaired, depending upon the kind of failure.
Smath as well as Mathematica, Mathcad suffers "shadow in the context" page 7.
A bit of MicMac in long work sheets collectors type.

Jean

SolveGEN.sm (102 KiB) downloaded 81 time(s).

#96 Posted: 4/28/2017 7:12:12 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.98.6325 and later

  • Clear(...) removed (built-in and more powerful since SMath Studio 0.98.6325);
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
NDTM Amarasekera 4/28/2017 12:06:00 PM
#97 Posted: 4/28/2017 11:09:42 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Tanks Davide,

The big question is if new version will allow
updating 6179 via downloading 'patches' ?

Jean
#98 Posted: 4/28/2017 1:33:42 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

The big question is if new version will allow
updating 6179 via downloading 'patches' ?



It is up to Andrey's choice. In theory built-in Clear(...) is coded inside SpecialFunctions.dll, so this plugin in particular could be compiled and shared thorough the extension manager for older versions, providing the core of the target version is still compatible. In practice this might introduce some problems at several levels; due to the progress in the core some built-in plugins might be more back-compatible than others or not at all (therefore some plugin might be able to go back up to version 0.97.xxxx and other to some more reccent 0.98.yyyy). This will raise other problems, such as solving bugs for multiple core+plugins combinations (community side it makes harder to help to identify and solve problems, dev side this drains time to develop and fix bugs for further versions)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#99 Posted: 8/16/2017 2:56:38 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.98.6398 Nightly Build only

- added rgb2image(...) rgb2image.sm (14 KiB) downloaded 73 time(s).;
- image2rgb(...) speed improvements;
- refactoring;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#100 Posted: 11/8/2017 5:15:10 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Hi Davide, ran across this error...

CustRg.png
  • New Posts New Posts
  • No New Posts No New Posts