Vector basic operations problem

Vector basic operations problem - Error occured when adressing the vector's element - 消息

#1 已发布: 2022/2/8 01:29:49
Igor K

Igor K

0个赞,共5个帖子。

组: User

Hi there, thanks for your attention.

I am newbie, and I guess I've made some silly mistake, somehow misusing the basic functions, but I can't figure out what exactly I made wrong, so I really appreciate your assistance.
Attempt to get the cosine of the vector results in a "Result is above max..." error. Could someone please point out what's wrong?

of_parking_tension.sm (5.13 KiB)已下载 1295 次。

Tnx a lot.
#2 已发布: 2022/2/8 02:18:04
Fridel Selitsky

Fridel Selitsky

520个赞,共451个帖子。

组: User

Use array vectorization
Vect1.sm (7.32 KiB)已下载 1299 次。
1位用户喜欢此帖子
Igor K 2022/2/8 03:30:00
#3 已发布: 2022/2/8 03:30:15
Igor K

Igor K

0个赞,共5个帖子。

组: User

Wrote

Use array vectorization
Vect1.sm (7.32 KiB)已下载 1299 次。



Got it, solved. Thanks.
#4 已发布: 2022/2/8 07:53:53
Jean Giraud

Jean Giraud

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

组: User

In Smath, two of the builtin functions needs be
integrate/vectorized ... if not: "x not defined".
Welcome to Smath Community.

Vectorize.PNG
#5 已发布: 2022/2/8 10:28:19
Igor K

Igor K

0个赞,共5个帖子。

组: User

Wrote

In Smath, two of the builtin functions needs be
integrate/vectorized ... if not: "x not defined".
Vectorize.PNG



Thank you Jean for supplementary explanation, but I'm not sure I got it clearly. Do you mean that if the expression includes more than one built-in function, as in your snippet (cos,sqrt), than it should be vectorized either as in previous example in this thread, or using the loop, as in your snippet? Could you please share some sources from which I could obtain in-depth description of this concept in order to save your time?

Wrote


Welcome to Smath Community.


Thank you very much. Your attitude is appreciated.
#6 已发布: 2022/2/8 10:47:36
Jean Giraud

Jean Giraud

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

组: User

Wrote

Thank you Jean for supplementary explanation, but I'm not sure I got it clearly. Do you mean that if the expression includes more than one built-in function, as in your snippet (cos,sqrt), than it should be vectorized either as in previous example in this thread, or using the loop, as in your snippet? Could you please share some sources from which I could obtain in-depth description of this concept in order to save your time?


The for loop will take any length and export ... simply !
The previous vectorize is a display only. Same not same for end use.
More vector maths attached ... not updated for 6 years.
Cheers, enjoy Smath ... Jean.

VectorField StreamLines Joukowsky Airfoil.sm (38.43 KiB)已下载 1302 次。
Vector Maths Direction Cosine [Dist-in-Space] Copy.sm (83.56 KiB)已下载 1148 次。
Vector Maths.sm (1.07 MiB)已下载 1324 次。
1位用户喜欢此帖子
Igor K 2022/2/8 10:50:00
#7 已发布: 2022/2/8 15:42:03
Jean Giraud

Jean Giraud

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

组: User

... doctored.

Vector Maths Direction Cosine [Dist-in-Space] Copy.sm (85.52 KiB)已下载 1147 次。
#8 已发布: 2022/2/13 11:51:54
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

Thank you Jean for supplementary explanation, but I'm not sure I got it clearly.


Near all new users doesn't understand him.
Experienced users learned to ignore him.

Search his name in mathcad forums around 2010-2012.
People over there appreciated when he left there.
Because of his unfounded claims and ridiculous posts.
So he left there just continues to pollute this forum.

I look forward to that happy upcoming day of departure of him.
1位用户喜欢此帖子
Oscar Campo 2022/2/14 12:43:00
#9 已发布: 2022/4/18 01:11:40
Igor K

Igor K

0个赞,共5个帖子。

组: User

Wrote

Wrote

Thank you Jean for supplementary explanation, but I'm not sure I got it clearly.




I look forward to that happy upcoming day of departure of him.



that's utterly hilarious.
#10 已发布: 2022/4/18 07:13:48
Jean Giraud

Jean Giraud

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

组: User

Wrote

Thank you Jean for supplementary explanation, but I'm not sure I got it clearly.


Can you refresh the original demand.
I lost track of it in the blue.

Cheers ... Jean.
#11 已发布: 2022/4/18 10:13:27
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

Can you refresh the original demand.
I lost track of it in the blue.


There is no need for your useless posts in this topic.

Wrote

Could someone please point out what's wrong?


First post has the question.

Wrote

Use array vectorization.


Ber7 already answered it correctly.

Wrote

Got it, solved. Thanks.


Topic owner thanked as it was the answer.
#12 已发布: 2022/4/18 10:55:38
Jean Giraud

Jean Giraud

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

组: User

Wrote

In Smath, two of the builtin functions needs be
integrate/vectorized ... if not: "x not defined".
Welcome to Smath Community.


2 more undefined 'x' complains.
1. Smath Simpson does not recognize the Power Function X^Y
2. Does not recognize Lamvert W(x)
Cheers ... Jean.
#13 已发布: 2022/4/18 11:20:50
Jean Giraud

Jean Giraud

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

组: User

Wrote

Thank you very much. Your attitude is appreciated.


You give gf
The for loop returns gf
In most applications you vectorize over sqrt
Some applications needs vectorize inside sqrt and over sqrt
Cheers ... Jean.

#14 已发布: 2022/4/18 15:00:19
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Jean, you are necroposting.
Question is already answered.
Don't spam the forum.

https://en.scratch-wiki.info/wiki/Necropost
  • 有新帖
  • 无新帖