A few SMath questions to get me going

A few SMath questions to get me going - Messages

#1 Posted: 1/27/2012 5:24:16 PM
Louis Sheffield

Louis Sheffield

0 likes in 2 posts.

Group: User

Greetings -

I have just discovered SMath, and believe I'm falling in love with it!
(convenient, given Valentine's Day is just around the corner)

I have a few questions, though, to get me up and going: I was using 0.90-portable on a Vista-64 machine

1) I don't believe I was able to define range variables (as in MathCAD) for use in indicial notation.
Is this possible, or are for-loops currently all there is?

2) I believe array indices are of the 1 through N sort, as opposed to 0 through N-1 - is this correct?

3) Relative to the sheet-capture below, is there any benefit to pre-defining arrays, as in line 5?

4) I verified the frequency array to be correct (line 6, on the left), but the 2D time array (to its right) was interrupted after an hour of calculation time,
and an astronomical number of page faults. What would be the SMath way of creating that array?

5) Is there a preferred row-column ordering of loops (inner vs outer) as there is in MathCAD?



(screenshot)


I thank you kindly in advance.

Regards,
Louie
#2 Posted: 1/27/2012 5:38:44 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Hello Louie. Great to see new people here!

Re 1) Try the range() function.
Re 2) Yes, you're right.
Re >=3) Sorry, but I have no flickr account...

Best regards, Andrey Ivashov.
#3 Posted: 1/27/2012 7:26:41 PM
Louis Sheffield

Louis Sheffield

0 likes in 2 posts.

Group: User

Sorry for the delay - most sharing sites are blocked at work.

(shouldn't require any login/signup)
#4 Posted: 1/28/2012 10:37:25 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,
Wrote

Sorry for the delay - most sharing sites are blocked at work.


Why don't you try dropbox. I am using it for a while and quite satisfied with it (free initially 2GB space - never expires).

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • New Posts New Posts
  • No New Posts No New Posts