Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'slot notation' topicStudent Support Forum > General > "slot notation"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda
11/15/12 1:55pm

Slot notation is simple
#1 (or just #) is the first argument to a function
#2 is the second argument
...
& just says that the expression is a function
so
Function[{x,y},x+y]
Function[#1+#2]
and #1+#2&
are all the same
The first one uses explicit (dummy) names
The last two use # notation.
The last one is a shortcut for the second one

As for Root, just use N to get numerical values

Since you didn't mention how you got your result (which function generated it) I cannot comment further


URL: ,

Subject (listing for 'slot notation')
Author Date Posted
slot notation sheila 11/15/12 04:02am
Re: slot notation Bill Simpson 11/15/12 1:15pm
Re: slot notation yehuda 11/15/12 1:55pm
Re: slot notation Michael 11/15/12 3:06pm
Re: slot notation Nasser M. Ab... 11/15/12 6:21pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic