Division with vector

Division with vector - Messages

#1 Posted: 3/15/2018 12:42:55 AM
vijaykhatri

vijaykhatri

1 likes in 23 posts.

Group: 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 Posted: 3/15/2018 2:16:37 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I am trying to do the following:



For God sake: what are you trying to do ?

Unknown.PNG

#3 Posted: 3/15/2018 11:15:54 AM
vijaykhatri

vijaykhatri

1 likes in 23 posts.

Group: 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 Posted: 3/15/2018 12:10:39 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 3/15/2018 1:29:30 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 KiB) downloaded 51 time(s).
matrix2.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Posted: 3/15/2018 2:29:42 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Maths Matrix Vijay.sm (11 KiB) downloaded 39 time(s).

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

vijaykhatri

1 likes in 23 posts.

Group: 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 Posted: 3/15/2018 6:34:53 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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

ViljayUnknown.PNG
#9 Posted: 3/15/2018 11:21:52 PM
vijaykhatri

vijaykhatri

1 likes in 23 posts.

Group: 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 Posted: 3/16/2018 12:18:34 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 3/16/2018 12:55:26 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I will try to code your latest information


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

Vijay(1).sm (26 KiB) downloaded 43 time(s).
#12 Posted: 3/16/2018 7:46:41 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

starting from the basics, hope it might help you

example.sm (17 KiB) downloaded 153 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
frapuano 3/16/2018 4:00:00 PM
#13 Posted: 3/16/2018 9:45:00 AM
vijaykhatri

vijaykhatri

1 likes in 23 posts.

Group: User

Wrote

starting from the basics, hope it might help you

example.sm (17 KiB) downloaded 153 time(s).



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

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

vijaykhatri

1 likes in 23 posts.

Group: User

Wrote

Wrote

I will try to code your latest information


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

Vijay(1).sm (26 KiB) downloaded 43 time(s).



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

Jean Giraud

983 likes in 6866 posts.

Group: User

Back to original.

Vijay(1).sm (7 KiB) downloaded 33 time(s).
#16 Posted: 3/16/2018 12:49:43 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 3/16/2018 1:46:53 PM
vijaykhatri

vijaykhatri

1 likes in 23 posts.

Group: 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.File not found.File not found.
#18 Posted: 3/16/2018 7:47:03 PM
CBG

CBG

77 likes in 312 posts.

Group: User

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13 KiB) downloaded 35 time(s).


Best Regards

Carlos
#19 Posted: 3/16/2018 8:55:29 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 3/16/2018 9:05:16 PM
vijaykhatri

vijaykhatri

1 likes in 23 posts.

Group: User

Wrote

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13 KiB) downloaded 35 time(s).


Best Regards

Carlos



Thank you Carlos, just one question, how did you create the vertical line with multiple entries.
line.png
  • New Posts New Posts
  • No New Posts No New Posts