Vectorize function

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

#1 Pubblicato: 16/04/2020 01:52:31
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26 apprezzamenti in 68 post.

Gruppo: 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,15 KiB) scaricato 1530 volta(e).
#2 Pubblicato: 16/04/2020 02:37:32
Fridel Selitsky

Fridel Selitsky

520 apprezzamenti in 451 post.

Gruppo: User

Matrices are multiplied like in a matcade
#3 Pubblicato: 16/04/2020 11:23:24
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

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

Otherwise.PNG
#4 Pubblicato: 16/04/2020 15:52:44
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

This way it works.

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

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: 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 Pubblicato: 16/04/2020 20:57:28
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26 apprezzamenti in 68 post.

Gruppo: User

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

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

There are some more issues with the vectorize function


Nice code SS 7251, not supported SS 6179.

Mround.PNG
#8 Pubblicato: 17/04/2020 09:40:28
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

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

SteelBar.PNG
#9 Pubblicato: 17/04/2020 09:51:17
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Project SteelBar.sm (7,73 KiB) scaricato 1556 volta(e).
#10 Pubblicato: 24/04/2020 22:45:36
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26 apprezzamenti in 68 post.

Gruppo: 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,48 KiB) scaricato 1492 volta(e).
#11 Pubblicato: 25/04/2020 16:45:24
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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,19 KiB) scaricato 1544 volta(e).

#12 Pubblicato: 08/11/2020 09:58:14
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: User

Wrote

here are some more issues with the vectorize function



Vectorize function without loops.

Vectorize_Eady.sm (15,01 KiB) scaricato 1466 volta(e).

Vectorize_Easy.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
  • Nuovi post
  • Nessun nuovo post