Division with vector

Division with vector - Poruke

#1 Objavljeno: 15. 3. 2018. 00:42:55
vijaykhatri

vijaykhatri

1 svidjanja u 23 postova.

Grupa: 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 Objavljeno: 15. 3. 2018. 02:16:37
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

I am trying to do the following:



For God sake: what are you trying to do ?

Unknown.PNG

#3 Objavljeno: 15. 3. 2018. 11:15:54
vijaykhatri

vijaykhatri

1 svidjanja u 23 postova.

Grupa: 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 Objavljeno: 15. 3. 2018. 12:10:39
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 15. 3. 2018. 13:29:30
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: 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) preuzeto 1186 put(ova).
matrix2.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#6 Objavljeno: 15. 3. 2018. 14:29:42
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Maths Matrix Vijay.sm (11,41 KiB) preuzeto 1169 put(ova).

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

vijaykhatri

1 svidjanja u 23 postova.

Grupa: 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 Objavljeno: 15. 3. 2018. 18:34:53
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

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

vijaykhatri

1 svidjanja u 23 postova.

Grupa: 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 Objavljeno: 16. 3. 2018. 00:18:34
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 16. 3. 2018. 00:55:26
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

I will try to code your latest information


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

Vijay(1).sm (26,88 KiB) preuzeto 1210 put(ova).
#12 Objavljeno: 16. 3. 2018. 07:46:41
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

starting from the basics, hope it might help you

example.sm (17,79 KiB) preuzeto 1360 put(ova).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 korisnika je svidelo ovu objavu
frapuano 16. 3. 2018. 16:00:00
#13 Objavljeno: 16. 3. 2018. 09:45:00
vijaykhatri

vijaykhatri

1 svidjanja u 23 postova.

Grupa: User

Wrote

starting from the basics, hope it might help you

example.sm (17,79 KiB) preuzeto 1360 put(ova).



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

Regards,
Vijay Khatri
#14 Objavljeno: 16. 3. 2018. 09:46:34
vijaykhatri

vijaykhatri

1 svidjanja u 23 postova.

Grupa: 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) preuzeto 1210 put(ova).



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

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Back to original.

Vijay(1).sm (7,11 KiB) preuzeto 1213 put(ova).
#16 Objavljeno: 16. 3. 2018. 12:49:43
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 16. 3. 2018. 13:46:53
vijaykhatri

vijaykhatri

1 svidjanja u 23 postova.

Grupa: 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.Fajl nije pronađen.Fajl nije pronađen.
#18 Objavljeno: 16. 3. 2018. 19:47:03
CBG

CBG

78 svidjanja u 312 postova.

Grupa: User

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13,52 KiB) preuzeto 1198 put(ova).


Best Regards

Carlos
#19 Objavljeno: 16. 3. 2018. 20:55:29
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 16. 3. 2018. 21:05:16
vijaykhatri

vijaykhatri

1 svidjanja u 23 postova.

Grupa: User

Wrote

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13,52 KiB) preuzeto 1198 put(ova).


Best Regards

Carlos



Thank you Carlos, just one question, how did you create the vertical line with multiple entries.
line.png
  • Novi postovi
  • Nema novih postova