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

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline olik  
#1 Posted : 26 November 2015 22:57:20(UTC)
olik


Rank: Member

Groups: Registered
Joined: 08/03/2012(UTC)
Posts: 25
Czech Republic
Location: Prague, Dolní Chabry

Was thanked: 3 time(s) in 2 post(s)
augment x.sm (7kb) downloaded 30 time(s).
variable x.png

Hello.

It is not possible to plot an augment function with 'x' as parametr.
Is it a bug, or some special feature of 'x'?

regards Olik

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 27 November 2015 02:40:18(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
This is not a bug. In the 2D plot region x and t are special unknowns (abscissa and animation parameter); both are parsed as local variables (doesn't matter if there are these variables on the canvas as defined values - except for t that can be used if you don't animate the plot). Therefore when you write augment(x,y) you are trying to augment each x displayed in the plot with y.

Obviously you can define the input matrix before the plot, outside the region placeholder; in this case x and y are parsed outside the plot and the input is simply the 3x2 matrix.

The X-Y plot works differently.

Edited by user 20 May 2016 22:25:36(UTC)  | Reason: marked as solved

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 27/11/2015(UTC)
Offline olik  
#3 Posted : 27 November 2015 18:47:05(UTC)
olik


Rank: Member

Groups: Registered
Joined: 08/03/2012(UTC)
Posts: 25
Czech Republic
Location: Prague, Dolní Chabry

Was thanked: 3 time(s) in 2 post(s)
Thanks.

Are there SMath other special unknowns? Or functions with special unknowns?

I think - for example - 'x' in integration ( int(T(x),ΞΎ,0,x) ).


Regards Olik

p.s.
I posted a question about it:
http://en.smath.info/for...ion-can-I-integrate.aspx
Offline Davide Carpi  
#4 Posted : 27 November 2015 20:49:27(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
In general, only lastError [this variable will be overwritten by any function giving an error.] and maybe i (there should be a post by Martin Kraska somewhere about issues noticed using i in some special case) and e.




If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Users browsing this topic
Guest
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.