Vectorize function

Vectorize function - Argument doesn't match to expected kind - 消息

#1 已发布: 2020/4/16 01:52:31
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26个赞,共68个帖子。

组: 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)已下载 1544 次。
#2 已发布: 2020/4/16 02:37:32
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

Matrices are multiplied like in a matcade
#3 已发布: 2020/4/16 11:23:24
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

Otherwise.PNG
#4 已发布: 2020/4/16 15:52:44
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: User

This way it works.

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

NDTM Amarasekera

130个赞,共352个帖子。

组: 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 已发布: 2020/4/16 20:57:28
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26个赞,共68个帖子。

组: User

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

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

There are some more issues with the vectorize function


Nice code SS 7251, not supported SS 6179.

Mround.PNG
#8 已发布: 2020/4/17 09:40:28
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

SteelBar.PNG
#9 已发布: 2020/4/17 09:51:17
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Project SteelBar.sm (7.73 KiB)已下载 1569 次。
#10 已发布: 2020/4/24 22:45:36
Alvaro Gavilán-Rojas

Alvaro Gavilán-Rojas

26个赞,共68个帖子。

组: 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)已下载 1506 次。
#11 已发布: 2020/4/25 16:45:24
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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)已下载 1555 次。

#12 已发布: 2020/11/8 09:58:14
NDTM Amarasekera

NDTM Amarasekera

130个赞,共352个帖子。

组: User

Wrote

here are some more issues with the vectorize function



Vectorize function without loops.

Vectorize_Eady.sm (15.01 KiB)已下载 1479 次。

Vectorize_Easy.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
  • 有新帖
  • 无新帖