A few SMath questions to get me going

A few SMath questions to get me going - 消息

#1 已发布: 2012/1/27 17:24:16
Louis Sheffield

Louis Sheffield

0个赞,共2个帖子。

组: 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 已发布: 2012/1/27 17:38:44
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: 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 已发布: 2012/1/27 19:26:41
Louis Sheffield

Louis Sheffield

0个赞,共2个帖子。

组: User

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

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

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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!"
  • 有新帖
  • 无新帖