Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Britt1  
#1 Posted : 15 May 2019 19:17:04(UTC)
Britt1


Rank: Advanced Member

Groups: Registered
Joined: 20/03/2019(UTC)
Posts: 73
United States
Location: Mandeville, LA

Does SMath have equivalent commands to Mathcad's "length(v)" and "last(v)" for returning the number of elements in vector "v"?

More specifically, I'm looking to translate the following Mathcad statements into SMath.

i:=0..last ⎛ ⎝Ln⟨0⟩⎞⎠ where Ln contains a previously-assigned 3x3 matrix of values
j≔0‥2
Offline Jean Giraud  
#2 Posted : 16 May 2019 02:49:05(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,974
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Britt1 Go to Quoted Post
Does SMath have equivalent commands to Mathcad's "length(v)" and "last(v)" for returning the number of elements in vector "v"?

1. length),) ... from f(x) menu
2. code last(,) like this => last(v):=rows(v)
last(,) in Mathcad is redondant !
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.