Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

10 Pages«<8910
Options
Go to last post Go to first unread
Offline uni  
#181 Posted : 27 October 2024 02:25:46(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
Coming soon...

The ability to explicitly specify the placement of block elements will be added.

It looks strange, maybe I'll add some numbering: #1, #2, #3, ...

MathcadBlock-extended.jpg

Edited by user 27 October 2024 02:32:33(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline Razonar  
#182 Posted : 27 October 2024 15:34:21(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Originally Posted by: uni Go to Quoted Post
... It looks strange, maybe I'll add some numbering: #1, #2, #3, ...


Hi. That's the Mathematica default notation for pure function's arguments: https://reference.wolfra...rkWithPureFunctions.html

Best regards.
Alvaro.

thanks 1 user thanked Razonar for this useful post.
on 27/10/2024(UTC)
Offline uni  
#183 Posted : 13 November 2024 09:47:53(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
SMath Studio compatibility

Plugin updated.

Changes:

- fixed image handling functions (READRGB(),...);
- the appearance of brackets has been changed;
- added the ability to explicitly specify an insert for MathcadBlock (##, #1, #2, ...).

mathcadblock-explicit-paste.sm (16kb) downloaded 11 time(s).

mathcadblock-explicit-paste.png

mathcadblock-explicit-ode.png

Edited by user 13 November 2024 22:12:58(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 13/11/2024(UTC)
Offline uni  
#184 Posted : 13 November 2024 22:42:40(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
Expanding the idea of ​​numbering, we can add syntax:

## - take all as sys|mat|line
#i#j - take from i to j
##j - take from 1 to j
#i# - take from i to end

and

#i#js - sys(#i,..,#j)
#i#jm - mat(#i,..,#j)
#i#jl - line(#i,..,#j)

#i#jfun - fun(#i,..,#j)

or

### - insert as parameters: foo(x,y,###) -> foo(x,y,#1,#2,...)
##3# - insert as parameters: foo(x,y,##3#) -> foo(x,y,#1,#2,#3)
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline mkraska  
#185 Posted : 14 November 2024 05:20:14(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,046
Germany

Was thanked: 1176 time(s) in 752 post(s)
I encountered a plot problem with the list version of rkfixed(). Probably this also applies to other ODE-integrators with embedded function assignment.

In the native 2D Plot:
- When plotting a solution function along with a matrix of marker points, then the points won't display
- Yet, when using lspline() directly, both objects plot without problems.

In X-Y Plot:
- When the independent variable has the same name as the solution function (e.g. x(x), then x() is not treated as a function but as the expression x (similar with v(v) or any other name).
- A workaround is to use a variable name different from the function name. Yet this is strange, because in SMath x() and x usually are independent objects.

plotproblem.sm (31kb) downloaded 5 time(s).
2024-11-13 17_08_58-SMath Solver - [plotproblem.sm_].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 14/11/2024(UTC)
Offline Razonar  
#186 Posted : 14 November 2024 07:45:31(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
A little step further? (And I say little because I'm not the one who has to improve the code) Take #arg as function parameter?

further.png

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 14/11/2024(UTC)
Offline uni  
#187 Posted : 15 November 2024 09:34:05(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
SMath Studio compatibility

Plugin updated.

Changes:

- MathcadBlock: the syntax for explicit insertion has been extended.

mathcadblock-explicit-paste.jpg

Edited by user 15 November 2024 09:42:56(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 16/11/2024(UTC)
Offline uni  
#188 Posted : 15 November 2024 11:14:39(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
Crazy

mathcadblock-alnleqsolve.sm (13kb) downloaded 9 time(s).

mathcadblock-alnleqsolve.png

Edited by user 15 November 2024 11:17:14(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 16/11/2024(UTC)
Offline mkraska  
#189 Posted : 15 November 2024 22:11:09(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,046
Germany

Was thanked: 1176 time(s) in 752 post(s)
Visualization of transformations and matrix norms using implicit plots and automatic scaling of the X-Y plots.

Matrixnormen 2D.png
Matrixnormen 2D.sm (29kb) downloaded 11 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 3 users thanked mkraska for this useful post.
on 15/11/2024(UTC),  on 15/11/2024(UTC),  on 16/11/2024(UTC)
Offline uni  
#190 Posted : 12 December 2024 10:09:39(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
I want to add a set of simple examples to the Mathcad block context menu that demonstrate how it works. Can you suggest such examples?
Similar to the X-Y Plot component. In this case, you will be able to fill in not only the input values, but also the description. You can insert arbitrary expressions inside the component.
Imagine that you can formalize the solution to a simple problem. What would you suggest as educational examples?

Edited by user 12 December 2024 10:16:51(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 14/12/2024(UTC)
Offline Razonar  
#191 Posted : 13 December 2024 23:18:46(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Originally Posted by: uni Go to Quoted Post
Imagine that you can formalize the solution to a simple problem. What would you suggest as educational examples?


I suggest a handbook like Martin's one, with examples where the user can reuse the code (Code reusability is the technical expression for when you don't want to say that you are going to copy and paste). Or like Mathcad quicksheets. This is my idea of a clean use of the block for solving high school problems.

BasicHandbook-nsol.pdf (353kb) downloaded 12 time(s).

BasicHandbook-nsol.sm (328kb) downloaded 5 time(s).

Best regards.
Alvaro.

thanks 5 users thanked Razonar for this useful post.
on 14/12/2024(UTC),  on 14/12/2024(UTC),  on 14/12/2024(UTC),  on 14/12/2024(UTC),  on 14/12/2024(UTC)
Offline mkraska  
#192 Posted : 14 December 2024 02:06:09(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,046
Germany

Was thanked: 1176 time(s) in 752 post(s)
I'd like to have such things like nsol in SMath core.

How about embedded assignment, similar to FindRoot? I don't like poking the values out of S. I see that this might reduce flexibility, e.g. in the case of parametrized initial guess.

I tried to demonstrate a generic approach, i.e. you get the variables assigned without having to issue any specific command except for the generic content of the placeholder. It is just a try and fails with single variables but you get the idea.

Of course, one would like to have a solve block without the cryptic generic expression in the placeholder.

Perhaps, such a block could be created from the insert menu with pre-allocated content of the placeholder and with setting it to hidden.

2024-12-13 13_47_32-SMath Solver - [BasicHandbook-nsol.sm_].png
BasicHandbook-nsol_Kr.sm (334kb) downloaded 8 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 14/12/2024(UTC)
Offline Razonar  
#193 Posted : 14 December 2024 04:21:36(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Hi Martin. I put "0" as argument because there are no more args. The second could be a vector of options, like this:

options.png

or the solved variables. Also, I use "S" because this error, which I imagine that could be corrected, but don't know how hard it could be:

err.png

Best regards.
Alvaro.

PD: Notice that x# : transpose(str2num(x#))*diag(U#) or x# : diag(U#)*str2num(x#) if you want to return the answer as column vector, like normal people, returns x# as scalar if length(x#) = 1.

Edited by user 14 December 2024 04:26:51(UTC)  | Reason: Not specified

Offline Razonar  
#194 Posted : 14 December 2024 13:36:10(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Originally Posted by: mkraska Go to Quoted Post
... How about embedded assignment, similar to FindRoot? I don't like poking the values out of S. I see that this might reduce flexibility, e.g. in the case of parametrized initial guess


Hi Martin. I think the opposite: the implicit assignment of the names of the variables sought to a solution makes its call very rigid, since many times there is no direct relationship between the variables of the equation and the names of the variables that are intended to be assigned to the solution, as is precisely demonstrated in this case

rel.png

Another variant among many would be to find a limiting speed and call the result v.lim, even though the variable of the equation is "v".

Best regards.
Alvaro.
Offline uni  
#195 Posted : 31 December 2024 06:07:50(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
SMath Studio compatibility History page
Mathcad Block.sm Mathcad Block. Examples.sm

Plugin updated

Changes:

- Mathcad Block: restored drawing of curly bracket (SS >= 1.3.*).

MathcadBlock-curly-bracket.jpg

Edited by user 31 December 2024 06:18:45(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 4 users thanked uni for this useful post.
on 31/12/2024(UTC),  on 31/12/2024(UTC),  on 01/01/2025(UTC),  on 01/01/2025(UTC)
Users browsing this topic
10 Pages«<8910
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.