Custom Functions plugin

Custom Functions plugin - functions: extended Max and Min, Unit of Measurement, Order of Magnitude - Сообщения

#81 Опубликовано: 10.06.2016 04:51:55
Brian Runagle

Brian Runagle

13 сообщений из 27 понравились пользователям.

Группа: 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 Опубликовано: 10.06.2016 11:14:59
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 137 раз(а).
#83 Опубликовано: 10.06.2016 12:42:58
Brian Runagle

Brian Runagle

13 сообщений из 27 понравились пользователям.

Группа: 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 КиБ) скачан 132 раз(а).

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

Cheers

Brian
#84 Опубликовано: 10.06.2016 13:40:57
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Oh ! Brian: you must complete the project.

Forum Convolution Brian.gif

#85 Опубликовано: 11.06.2016 07:41:22
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 11.06.2016 09:44:19
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 11.06.2016 11:26:00
#87 Опубликовано: 11.06.2016 11:33:26
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 13.09.2016 11:37:09
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 пользователям понравился этот пост
sergio 13.09.2016 11:39:00, Andrey Ivashov 13.09.2016 11:49:00, NDTM Amarasekera 13.09.2016 12:01:00, frapuano 02.12.2016 13:17:00
#89 Опубликовано: 03.12.2016 12:46:30
frapuano

frapuano

13 сообщений из 115 понравились пользователям.

Группа: 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 Опубликовано: 03.12.2016 14:39:56
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 пользователям понравился этот пост
sergio 03.12.2016 16:32:00
#91 Опубликовано: 03.12.2016 23:08:01
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 04.12.2016 09:30:10
frapuano

frapuano

13 сообщений из 115 понравились пользователям.

Группа: 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 Опубликовано: 05.12.2016 19:33:48
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 127 раз(а).
1 пользователям понравился этот пост
frapuano 06.12.2016 06:56:00
#94 Опубликовано: 13.03.2017 07:40:12
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 13.03.2017 18:59:51
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 108 раз(а).

#96 Опубликовано: 28.04.2017 07:12:12
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 пользователям понравился этот пост
NDTM Amarasekera 28.04.2017 12:06:00
#97 Опубликовано: 28.04.2017 11:09:42
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Tanks Davide,

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

Jean
#98 Опубликовано: 28.04.2017 13:33:42
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 16.08.2017 14:56:38
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

PLUGIN UPDATED SMath Studio 0.98.6398 Nightly Build only

- added rgb2image(...) rgb2image.sm (14 КиБ) скачан 101 раз(а).;
- 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 Опубликовано: 08.11.2017 17:15:10
Alexander O. Melnik

Alexander O. Melnik

127 сообщений из 494 понравились пользователям.

Группа: Moderator

Hi Davide, ran across this error...

CustRg.png
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений