Division with vector

Division with vector - Mensajes

#1 Publicado: 15/3/2018 0:42:55
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: 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 Publicado: 15/3/2018 2:16:37
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

I am trying to do the following:



For God sake: what are you trying to do ?

Unknown.PNG

#3 Publicado: 15/3/2018 11:15:54
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: 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 Publicado: 15/3/2018 12:10:39
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 15/3/2018 13:29:30
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1151 vez(es).
matrix2.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#6 Publicado: 15/3/2018 14:29:42
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Maths Matrix Vijay.sm (11,41 KiB) descargado 1140 vez(es).

Vijay.PNG
#7 Publicado: 15/3/2018 15:43:29
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: 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 Publicado: 15/3/2018 18:34:53
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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

ViljayUnknown.PNG
#9 Publicado: 15/3/2018 23:21:52
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: 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 Publicado: 16/3/2018 0:18:34
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 16/3/2018 0:55:26
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

I will try to code your latest information


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

Vijay(1).sm (26,88 KiB) descargado 1171 vez(es).
#12 Publicado: 16/3/2018 7:46:41
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

starting from the basics, hope it might help you

example.sm (17,79 KiB) descargado 1327 vez(es).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
A 1 usuarios les gustó este mensaje
frapuano 16/3/2018 16:00:00
#13 Publicado: 16/3/2018 9:45:00
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: User

Wrote

starting from the basics, hope it might help you

example.sm (17,79 KiB) descargado 1327 vez(es).



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

Regards,
Vijay Khatri
#14 Publicado: 16/3/2018 9:46:34
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: 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) descargado 1171 vez(es).



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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Back to original.

Vijay(1).sm (7,11 KiB) descargado 1183 vez(es).
#16 Publicado: 16/3/2018 12:49:43
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 16/3/2018 13:46:53
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: 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.Archivo no encontrado.Archivo no encontrado.
#18 Publicado: 16/3/2018 19:47:03
CBG

CBG

78 me gusta en 312 mensajes.

Grupo: User

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13,52 KiB) descargado 1168 vez(es).


Best Regards

Carlos
#19 Publicado: 16/3/2018 20:55:29
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 16/3/2018 21:05:16
vijaykhatri

vijaykhatri

1 me gusta en 23 mensajes.

Grupo: User

Wrote

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13,52 KiB) descargado 1168 vez(es).


Best Regards

Carlos



Thank you Carlos, just one question, how did you create the vertical line with multiple entries.
line.png
  • Nuevos mensajes
  • Sin mensajes nuevos