Division with vector

Division with vector - 消息

#1 已发布: 2018/3/15 00:42:55
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Hi,

I am trying to to the following:

n:=[1..1200]

s(n):=(1200-n)/1200

I(n):200/(1+2/s(n))

"I get an error divisor matrix must be square"

any suggestions???

Regards,
Vijay
#2 已发布: 2018/3/15 02:16:37
Jean Giraud

Jean Giraud

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

组: User

Wrote

I am trying to do the following:



For God sake: what are you trying to do ?

Unknown.PNG

#3 已发布: 2018/3/15 11:15:54
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Thank you for the response, I am new to this forum, is there a way I can send a .pdf file of the work I had done in MathCad, this will help you see what I am trying to do in Smath.
Vijay
#4 已发布: 2018/3/15 12:10:39
Jean Giraud

Jean Giraud

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

组: User

Wrote

Thank you for the response, I am new to this forum, is there a way I can send a .pdf file of the work I had done in MathCad, this will help you see what I am trying to do in Smath.
Vijay


Try this much easier:
1. compact as much as you can your part of Mathcad
2. PrintScreen, paste in Paint, clean
3. In your C:\ ... create a directory "Snippets"
4. Try to save your Paint as *.PNG in your "Snippets"
5. then => add file from the Smath forum
by double click on the *.PNG in the Snippets directory.

#5 已发布: 2018/3/15 13:29:30
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

you divide by a vector. If you want to apply that by element, then use the vectorize operator.

Alternatively, you can use implicit loops.

In any case make sure that you don't divide by zero.

To upload images or files, use the paperclip button ("Insert an existing...." )

matrix2.sm (19.87 KiB)已下载 1176 次。
matrix2.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#6 已发布: 2018/3/15 14:29:42
Jean Giraud

Jean Giraud

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

组: User

Maths Matrix Vijay.sm (11.41 KiB)已下载 1159 次。

Vijay.PNG
#7 已发布: 2018/3/15 15:43:29
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Wrote

Wrote

Thank you for the response, I am new to this forum, is there a way I can send a .pdf file of the work I had done in MathCad, this will help you see what I am trying to do in Smath.
Vijay


Try this much easier:
1. compact as much as you can your part of Mathcad
2. PrintScreen, paste in Paint, clean
3. In your C:\ ... create a directory "Snippets"
4. Try to save your Paint as *.PNG in your "Snippets"
5. then => add file from the Smath forum
by double click on the *.PNG in the Snippets directory.



info.png
#8 已发布: 2018/3/15 18:34:53
Jean Giraud

Jean Giraud

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

组: User

Too many parameters are missing to reproduce
r1, r2, E, x [u in Smath ... back to x in plot]

ViljayUnknown.PNG
#9 已发布: 2018/3/15 23:21:52
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Thank you for your efforts, that's what I am looking for. I am resending the data with all the information. I have a few questions on your previous post, there is an arrow above 2/s and I(u)^2.What is that function. Also, you have used the value of u = 13.5? Also, when you plot the graph, did you just type T(13.5) to get the graph?
data.png
#10 已发布: 2018/3/16 00:18:34
Jean Giraud

Jean Giraud

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

组: User

Wrote

Thank you for your efforts, that's what I am looking for.
I am re-sending the data with all the information.
I have a few questions on your previous post, there is an arrow above 2/s and I(u)^2.
What is that function. Also, you have used the value of u = 13.5?
Also, when you plot the graph, did you just type T(13.5) to get the graph?



1. The arrow is the vectorising operator [same as Mathcad].
2. 'u' is the wild parameter of same nature as r1,r2
3. The system runs over 'n' taken into account wrt the vectorised arguments.
4. Shift@ to get the plot region, type T(13.5) then [ to get the index operator
then type x. The Smath plot argument is 'x'. So, by indexing, it will plot over
the running 'x'. If you want to plot ln(x), just type ln(x) in the plot place holder.

I will try to code your latest information, but busy next three days.

#11 已发布: 2018/3/16 00:55:26
Jean Giraud

Jean Giraud

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

组: User

Wrote

I will try to code your latest information


Now, you have another story [a different project].

Vijay(1).sm (26.88 KiB)已下载 1192 次。
#12 已发布: 2018/3/16 07:46:41
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

starting from the basics, hope it might help you

example.sm (17.79 KiB)已下载 1349 次。
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
frapuano 2018/3/16 16:00:00
#13 已发布: 2018/3/16 09:45:00
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Wrote

starting from the basics, hope it might help you

example.sm (17.79 KiB)已下载 1349 次。



Thank you so much, this really helps. May I suggest you post this as an example so everyone can benefit.

Regards,
Vijay Khatri
#14 已发布: 2018/3/16 09:46:34
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Wrote

Wrote

I will try to code your latest information


Now, you have another story [a different project].

Vijay(1).sm (26.88 KiB)已下载 1192 次。



Thank you, you have given me ideas that I can try to implement.
#15 已发布: 2018/3/16 10:18:52
Jean Giraud

Jean Giraud

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

组: User

Back to original.

Vijay(1).sm (7.11 KiB)已下载 1203 次。
#16 已发布: 2018/3/16 12:49:43
Jean Giraud

Jean Giraud

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

组: User

Wrote

May I suggest you post this as an example so everyone can



You can mine Smath by visiting "Samples".
Without the circuit, it looks dead.
#17 已发布: 2018/3/16 13:46:53
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Wrote

Wrote

May I suggest you post this as an example so everyone can



You can mine Smath by visiting "Samples".
Without the circuit, it looks dead.



Attached is another similar file for which I have included the circuit diagram. I am assuming this will be posted in samples in this foroum.未找到文件。未找到文件。
#18 已发布: 2018/3/16 19:47:03
CBG

CBG

78个赞,共312个帖子。

组: User

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13.52 KiB)已下载 1186 次。


Best Regards

Carlos
#19 已发布: 2018/3/16 20:55:29
Jean Giraud

Jean Giraud

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

组: User

Wrote

May I suggest you post this as an example



Visit => Samples => Motor Analysis [20180316, 19:52]

Drawing was sharpened to the possible limit,
if you have a better one, please offer.

Jean
#20 已发布: 2018/3/16 21:05:16
vijaykhatri

vijaykhatri

1个赞,共23个帖子。

组: User

Wrote

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13.52 KiB)已下载 1186 次。


Best Regards

Carlos



Thank you Carlos, just one question, how did you create the vertical line with multiple entries.
line.png
  • 有新帖
  • 无新帖