Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13313
| From | svkeeley@aol.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: What the meant of the symbols # and & on the following example |
| Date | 2013-01-31 03:05 +0000 |
| Message-ID | <kecn1j$ese$1@smc.vnet.net> (permalink) |
| References | <ke7uh6$4i0$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On Monday, January 28, 2013 11:42:30 PM UTC-8, Chris wrote: > Bellow is presented an eigenvalue resultant of a jacobian matrix... where appears (..)#1 and (..)#1^2,& what it means? > > > > Root[C0 CG^2 vG^2 vL \+(2 C0 CL^2 vG vL \[Alpha]^2 \[Rho]L^2+C0 CL^2 vL^2 \[Alpha]^2 \[Rho]L^2) #1+([Alpha] \[Rho]L^2-C0 CL^2 vG \[Alpha]^2 \[Rho]L^2-2 C0 CL^2 vL \[Alpha]^2 \[Rho]L^2) #1^2&,1] > > > > best regards This is what Mathematica calls a pure function. The # represents a variable. #1 is one variable, #2 would be another. In your result, #1 is one new variable Mathematic added. #1^2 is that variable squared. The & is just a sign that the preceding is a pure function. For example, you could write a function lixe this: f[x]:= x^2 or you could write it as a pure function: f=#^2& Either way, f[3] would give you an answer of 9, and f[x+y] would return (x+y)^2.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
What the meant of the symbols # and & on the following example Chris <chrisoff22@yahoo.com.br> - 2013-01-29 07:42 +0000 Re: What the meant of the symbols # and & on the following example svkeeley@aol.com - 2013-01-31 03:05 +0000
csiph-web