Creating a function of a range variable

Creating a function of a range variable - Newbie to SMath can't figure out what to do with a matrix in a function - 消息

#1 已发布: 2020/7/4 02:00:34
Trip

Trip

0个赞,共4个帖子。

组: User

Function of a range variable.png

I have looked into vectorizing and tried cross product but I can't figure out how to return a matrix (and eventually a graph) of the function that is a dependent on the variable twall. Any help is appreciated. I'm trying to save money by using this program but it is harder than MathCAD to figure out the errors.

Trip
#2 已发布: 2020/7/4 06:24:48
sergio

sergio

127个赞,共342个帖子。

组: User

Try like this
SMathStudio_Desktop_CkSSfGubM9.png
sergio
#3 已发布: 2020/7/4 07:03:51
Trip

Trip

0个赞,共4个帖子。

组: User

So I was able to do for the example but now I can't remember the keystrokes to get:

twall:="0,1;0,2..1"

The part in quotes is where I'm stuck. When I try to type a comma, nothing happens. I can't type 0 and then a comma or 0 and then a semi-colon. I can only type one period. I'm just missing some simple thing to generate what you show.

I'll keep checking back to my email for this thread. Thanks for reaching out.

Trip
#4 已发布: 2020/7/4 07:09:19
sergio

sergio

127个赞,共342个帖子。

组: User

Use the range function.
Also remember that based on some options related to the set country, they lead to different use of the comma of the period and the semicolon
sergio
#5 已发布: 2020/7/4 07:10:52
Trip

Trip

0个赞,共4个帖子。

组: User

Now I re-found the range operator here:

Range variable.png
#6 已发布: 2020/7/4 07:23:48
Trip

Trip

0个赞,共4个帖子。

组: User

未找到文件。未找到文件。

I follow your keystrokes but I get error messages for the function I define and for the vectorized function. Any ideas?
#7 已发布: 2020/7/4 08:47:23
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Now I re-found the range operator here


or type coma select first place holder.

range.PNG
#8 已发布: 2020/7/5 12:11:48
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote


I follow your keystrokes but I get error messages for the function I define and for the vectorized function. Any ideas?



Hi Trip. It seems that you are using matrices subscripts instead dot subscript in the variable t. This make that sigma isn't well defined, and thus can't be vectorized. If you upload your file I'm sure that someone can tell you what's wrong.

Best regards.
Alvaro.
#9 已发布: 2020/7/5 14:48:58
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

If you just want it to work ... Jean

rangeUNK.sm (8.22 KiB)已下载 1505 次。
  • 有新帖
  • 无新帖