1 страниц (8 вхождений)
Newbie problem - Using a range of angles inside a cosine function - Trying to use cos(variable angle) - Сообщения
#1 Опубликовано: 03.10.2012 06:41:00
Hi,
I'm trying to convert some old Mathcad files into SMath but am stuck with what must be an elementary problem, I've looked at various tutorials but can't find a solution, no doubt due to my own incompetence.
I am defining the following variables: angle:=72 and varangle:= 0, angle/2..360
In Mathcad if I then define: test(varangle):= cos(varangle) the output of test(varangle) displays correctly in a column.
If I try the same in SMath I receive either an 'argument must be scalar' or 'fill in all empty elements' error.
Thanks for any advice.
Screenshots of Mathcad and SMath attached.
btw, great software.
Mathcad - output.pdf (26 КиБ) скачан 69 раз(а).
I'm trying to convert some old Mathcad files into SMath but am stuck with what must be an elementary problem, I've looked at various tutorials but can't find a solution, no doubt due to my own incompetence.
I am defining the following variables: angle:=72 and varangle:= 0, angle/2..360
In Mathcad if I then define: test(varangle):= cos(varangle) the output of test(varangle) displays correctly in a column.
If I try the same in SMath I receive either an 'argument must be scalar' or 'fill in all empty elements' error.
Thanks for any advice.
Screenshots of Mathcad and SMath attached.
btw, great software.
Mathcad - output.pdf (26 КиБ) скачан 69 раз(а).
#2 Опубликовано: 03.10.2012 07:49:27
Correct me if i'm wrong, trigonometric functions don't support arrays currently.
For now, you can do something like this.
cosinOfArray.sm (5 КиБ) скачан 172 раз(а).
For now, you can do something like this.
cosinOfArray.sm (5 КиБ) скачан 172 раз(а).
1 пользователям понравился этот пост
1752 28.09.2024 14:44:00
#3 Опубликовано: 03.10.2012 11:09:17
Thank you kilele
#4 Опубликовано: 03.10.2012 11:31:19
You can convert the vector into a system (by w3b5urf3r_reloaded)
Regards, Ber7
https://smath.com/wiki/GetFile.aspx?File=cosinOfArray%5b1%5d.rar
Regards, Ber7
https://smath.com/wiki/GetFile.aspx?File=cosinOfArray%5b1%5d.rar
1 пользователям понравился этот пост
Davide Carpi 03.10.2012 13:33:00
#5 Опубликовано: 03.10.2012 11:33:28

Regards, Ber7
#6 Опубликовано: 28.09.2024 14:44:50
WroteCorrect me if i'm wrong, trigonometric functions don't support arrays currently.
For now, you can do something like this.
did arrays appear in trigonometric functions?
#8 Опубликовано: 29.09.2024 22:22:50
An alternative to the vectorize() function is the use of index vectors.
They, however, only work if they are used in a definition.

Worksheet1.sm (5 КиБ) скачан 19 раз(а).
They, however, only work if they are used in a definition.
Worksheet1.sm (5 КиБ) скачан 19 раз(а).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
sergio 29.09.2024 23:37:00
1 страниц (8 вхождений)
-
Новые сообщения
-
Нет новых сообщений