snehoozle
snehoozle

Reputation: 273

What do the # and & symbol signify in mathematica?

I'm struggling to make sense of the following output of an integral in mathematica:

Root[c#1^4 + a #1 + b & 1]

What exactly does this mean? I've looked up the documentation for # and & but putting everything together to understand the above expression is a tad confusing.

Thanks!

Upvotes: 1

Views: 3312

Answers (1)

FractalDoctor
FractalDoctor

Reputation: 2546

Thing of the # and & as a way of injecting values into a function call, that's how I tend to read it.

For example

Map[Print[#]&,{1,2,3}]

would inject the values from the list on the right into the Print[] call on the left.

Formally, look at the definition of the Slot[] function which really helps.

Upvotes: 1

Related Questions