Division with vector

Division with vector - Сообщения

#1 Опубликовано: 15.03.2018 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 Опубликовано: 15.03.2018 02:16:37
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I am trying to do the following:



For God sake: what are you trying to do ?

Unknown.PNG

#3 Опубликовано: 15.03.2018 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 Опубликовано: 15.03.2018 12:10:39
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 15.03.2018 13:29:30
Martin Kraska

Martin Kraska

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

Группа: 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 КиБ) скачан 51 раз(а).
matrix2.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Опубликовано: 15.03.2018 14:29:42
Jean Giraud

Jean Giraud

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

Группа: User

Maths Matrix Vijay.sm (11 КиБ) скачан 39 раз(а).

Vijay.PNG
#7 Опубликовано: 15.03.2018 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 Опубликовано: 15.03.2018 18:34:53
Jean Giraud

Jean Giraud

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

Группа: User

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

ViljayUnknown.PNG
#9 Опубликовано: 15.03.2018 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 Опубликовано: 16.03.2018 00:18:34
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 16.03.2018 00:55:26
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I will try to code your latest information


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

Vijay(1).sm (26 КиБ) скачан 43 раз(а).
#12 Опубликовано: 16.03.2018 07:46:41
Davide Carpi

Davide Carpi

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

Группа: Moderator

starting from the basics, hope it might help you

example.sm (17 КиБ) скачан 153 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
frapuano 16.03.2018 16:00:00
#13 Опубликовано: 16.03.2018 09:45:00
vijaykhatri

vijaykhatri

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

Группа: User

Wrote

starting from the basics, hope it might help you

example.sm (17 КиБ) скачан 153 раз(а).



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

Regards,
Vijay Khatri
#14 Опубликовано: 16.03.2018 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 КиБ) скачан 43 раз(а).



Thank you, you have given me ideas that I can try to implement.
#15 Опубликовано: 16.03.2018 10:18:52
Jean Giraud

Jean Giraud

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

Группа: User

Back to original.

Vijay(1).sm (7 КиБ) скачан 33 раз(а).
#16 Опубликовано: 16.03.2018 12:49:43
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 16.03.2018 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 Опубликовано: 16.03.2018 19:47:03
CBG

CBG

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

Группа: User

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13 КиБ) скачан 35 раз(а).


Best Regards

Carlos
#19 Опубликовано: 16.03.2018 20:55:29
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 16.03.2018 21:05:16
vijaykhatri

vijaykhatri

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

Группа: User

Wrote

Something like this?


V_cbg_Jean.png


Vijay_CBG_Jean.sm (13 КиБ) скачан 35 раз(а).


Best Regards

Carlos



Thank you Carlos, just one question, how did you create the vertical line with multiple entries.
line.png
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений