Vectors to solve individual equation

Vectors to solve individual equation - Not sure if bug or feature - Сообщения

#1 Опубликовано: 20.07.2012 23:00:20
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

OK, SO I have a basic question. How do I use a vector to solve an equation? See attached where I have Area defined and Diameter is 8 and 16 inches. As long as I don't square the equation, the result remains a vector
Vectors01.smz (2 КиБ) скачан 37 раз(а).
#2 Опубликовано: 21.07.2012 01:53:26
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello,

It seems that vectors - column matrix are multiplied getting their scalar product (sum of products of their elements). If you want the elemental product you should use for loop.

[MATH=eng]D:mat(8,16,2,1)[/MATH]


[MATH=eng]for(i,range(1,length(D)),el(A,i):π/4*el(D,i)^2)[/MATH]


[MATH=eng]A=mat(50.265,201.062,2,1)[/MATH]

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
ElSid 25.07.2012 10:35:00
#3 Опубликовано: 24.07.2012 20:17:48
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

Thanks. I figured it out slightly before you posted. I see this question has been previously asked ... as the equivalent of MathCADs vectorize (e.g. element-wise matrix operation) http://en.smath.info/forum/yaf_postsm3770findlastpost_element-wise-matrix-operations.aspx#post3770. I hope Andre can get this feature implemented for the same reason on the link.

Secondary question, when defining a NEW unit, is there a way of forcing it to show in the same font and color (blue) as the built in units?
#4 Опубликовано: 25.07.2012 03:25:24
Steve Swinbanks

Steve Swinbanks

2 сообщений из 11 понравились пользователям.

Группа: User

Sure, just use the apostrophe "'" when defining the unit you want. Then from there it always displays the font and colour correctly.

Steve
2 пользователям понравился этот пост
Radovan Omorjan 25.07.2012 07:37:00, ElSid 25.07.2012 10:35:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений