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 Daniel  
#1 Posted : 02 October 2009 05:18:26(UTC)
Daniel

Rank: Newbie

Groups: Registered
Joined: 02/10/2009(UTC)
Posts: 2
Location: New Zealand

Hi Guys,

This is some great software you have here and I commend you for the great effort that has gone into it!

I have a question about how to address the answers from the following example:


I tried addressing it as a vector, but it is a scaler so this will not work.

Thanks in advance,
Daniel

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

Offline omorr  
#2 Posted : 02 October 2009 13:06:10(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Daniel
Daniel wrote:
I have a question about how to address the answers from the following example:


I tried addressing it as a vector, but it is a scaler so this will not work

The Equation systems template should, actually, give a vector. Try this:
x←10±5
x=sys(15;5;2;1)
el(x;1;1)=15
el(x;2;1)=5
As this is a vector you can omit the second index
BTW, it seems there are some problems with Equation system. Please look at the
http://en.smath.info/forum/default.aspx?g=posts&t=222
Regards,
Radovan

Edited by user 02 October 2009 13:17:47(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Daniel  
#3 Posted : 04 October 2009 05:07:25(UTC)
Daniel

Rank: Newbie

Groups: Registered
Joined: 02/10/2009(UTC)
Posts: 2
Location: New Zealand

Ahh I see, I was trying to access this using the matrix minor function thinking it was the same as what the key "[" provides (which I only just figured out too!).
I could not find a reference to access matrix elements in your SMath tutorial, but did find it here: http://en.smath.info/for...t.aspx?g=posts&t=138
Offline omorr  
#4 Posted : 04 October 2009 12:48:16(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Daniel,
Daniel wrote:
Ahh I see, I was trying to access this using the matrix minor function thinking it was the same as what the key "[" provides (which I only just figured out too!).
I could not find a reference to access matrix elements in your SMath tutorial, but did find it here: http://en.smath.info/for...t.aspx?g=posts&t=138


Take a look at http://smath.info/wiki/Matrices.ashx or http://smath.info/wiki/Tutorials.ashx

Regards,
Radovan

Edited by user 04 October 2009 12:50:19(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#5 Posted : 05 October 2009 04:04:18(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Everything is true. Thank you Radovan Good
Offline omorr  
#6 Posted : 05 October 2009 13:01:09(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
You are welcome, and welcome back Good
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline ElSid  
#7 Posted : 05 October 2009 23:57:43(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Nice to see vectors with single subscripts. Was a literal subscript (in Mathcad its the {.}) implemented? Also, do all matrix/array/vectors start at 1? In Mathcad the Origin defaults to "0". Either way is fine.
Offline omorr  
#8 Posted : 06 October 2009 01:23:33(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello ElSid
ElSid wrote:
Nice to see vectors with single subscripts. Was a literal subscript (in Mathcad its the {.}) implemented? Also, do all matrix/array/vectors start at 1? In Mathcad the Origin defaults to "0". Either way is fine.

As I remember, few posts mentioned literal subscript. You are right, we (Mathcad users) are used to literal index notation. I think this is not implemented. The final decission is on SMath creators.

Also, we are used to ORIGIN in Mathcad. As I remember, ORIGIN made problems in earlier version of Mathcad. I agree with you, starting index at 0 or 1 makes no difference, as far as I am concerned. In my experience, the only use of ORIGIN was to set it up to 0 or 1. I do not remember that I set it up to some other values.

Regards,
Radovan

Edited by user 06 October 2009 02:24:16(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline ElSid  
#9 Posted : 06 October 2009 06:01:48(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
omorr wrote:
Hello ElSid
Also, we are used to ORIGIN in Mathcad. As I remember, ORIGIN made problems in earlier version of Mathcad. I agree with you, starting index at 0 or 1 makes no difference, as far as I am concerned. In my experience, the only use of ORIGIN was to set it up to 0 or 1. I do not remember that I set it up to some other values.

Regards,
Radovan

Just curious to know which way the developer goes. Mathcad defaults to ORIGIN=0. For most people, ORIGIN=1 is initially easier, although thinking of an initial state (velocity sub initial) is typically written with 0 Good
Users browsing this topic
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.