Vectorize function

Vectorize function - Argument doesn't match to expected kind - Messages

#1 Posted: 4/16/2020 1:52:31 AM
Alvaro Gavilán

Alvaro Gavilán

25 likes in 68 posts.

Group: User

Hello,

I am having this issue evaluating the vectorized multiplication:

Anotacion 2020-04-16 004458.jpg

I don't know what the problem could be. I started today switching definitely from Mathcad Prime 5 and started rewriting some codes.

Really happy with the decision I made, and also with the latest SMath studio version, I am running 0.99.7251 SMath.

Thank you in advance for your help,

Alvaro Gavilán

Vectorize.sm (6 KiB) downloaded 35 time(s).
#2 Posted: 4/16/2020 2:37:32 AM
Fridel Selitsky

Fridel Selitsky

520 likes in 451 posts.

Group: User

Matrices are multiplied like in a matcade
#3 Posted: 4/16/2020 11:23:24 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Just a matter of isolating the code
col(A,1), col(A,2) are not like function.

Otherwise.PNG
#4 Posted: 4/16/2020 3:52:44 PM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

This way it works.

Vect_Error.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#5 Posted: 4/16/2020 4:44:34 PM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

There are some more issues with the vectorize function

Vect_Error_2.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#6 Posted: 4/16/2020 8:57:28 PM
Alvaro Gavilán

Alvaro Gavilán

25 likes in 68 posts.

Group: User

Thank you all for your quick responses! Problem solved with ndtma solution. Thank you
Anotacion 2020-04-16 210734.jpg
#7 Posted: 4/16/2020 10:55:20 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

There are some more issues with the vectorize function


Nice code SS 7251, not supported SS 6179.

Mround.PNG
#8 Posted: 4/17/2020 9:40:28 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Make your Steel Bar project Engineer style, all at once.

SteelBar.PNG
#9 Posted: 4/17/2020 9:51:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Project SteelBar.sm (7 KiB) downloaded 42 time(s).
#10 Posted: 4/24/2020 10:45:36 PM
Alvaro Gavilán

Alvaro Gavilán

25 likes in 68 posts.

Group: User

Thank you Jean for your suggestion.

I would rather use a function, because in various parts of my worksheet (beam design), I need that function. It would be like this:

Annotation 2020-04-24 214221.png


AG24042020-Steel area.sm (6 KiB) downloaded 33 time(s).
#11 Posted: 4/25/2020 4:45:24 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I would rather use a function,
because in various parts of my worksheet (beam design),
I need that function.


Maybe like this.

Project SteelBar.sm (23 KiB) downloaded 49 time(s).

#12 Posted: 11/8/2020 9:58:14 AM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Wrote

here are some more issues with the vectorize function



Vectorize function without loops.

Vectorize_Eady.sm (15 KiB) downloaded 33 time(s).

Vectorize_Easy.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
  • New Posts New Posts
  • No New Posts No New Posts