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

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:2+6 =



Original Message (ID '129798') By Nasser M. Abbasi:
when you see Root[-1 - #1 - 2 #1^2 + #1^3 &, 1], you can think of it as the same thing as: -------------- k = 1; (*which root to pick *) Root[-1 - #1 - 2 #1^2 + #1^3 &, k] N[%] 2.54682 -------------------- which is the same as solving the polynomial in 'x' f[x_] := -1 - x - 2 x^2 + x^3; N[x /. Solve[f[x] == 0, x][[k]]] 2.54682 ------------------------ Where I replaced the slot '#1' by an nicer looking symbol 'x'. Pure functions are core thing in Mathematica since it is a functional programming language.