Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,653 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Hi, I think that the built-in range(3) function it's a little bit complicated to understand and to handle... I propose as improvement the following behavior (see the attachment) BTW the endRange value does not necessarily appear in the output vactor regards, w3b5urf3r Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,988 Was thanked: 1127 time(s) in 723 post(s)
|
I'd leave it as it is.
The complication which I see is that the start value has to be specified twice, if you want to explicitly specify the increment.
range(-2,1,-2+0.3)=mat(-2,-1.7,-1.4,-1.1,-0.8,-0.5,-0.2,0.1,0.4,0.7,10,1)
At least the representation is consistent with MathCad ranges, and also consistent with how one would write a range by hand. However, it took me quite some time when starting with SMath to find out that the range variables are missing and how to specify ranges. AFAIK, in Mathcad there is no function for ranges, just type ; and you get the placeholders.
Would be fine to have that in SMath as well. This would perhaps be impossible if ; is set as arg delimiter. Then a double dot .. would be an intuitive shortcut
Best regards, Martin |
|
|
|
|
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.