2
votes
1answer
105 views

Why is either Listable or HoldFirst not working?

Starting with a fresh kernel, I evaluate the following: ...
1
vote
1answer
87 views

Requiring NumericQ in Pure Function

Potential duplicate, but doesn't seem to solve my problem: Using patterns in pure functions I have a function that returns an InterpolatingFunction, and it works ...
0
votes
1answer
82 views

Define a function that returns a function with a variable number of arguments

Previously, I've defined a function with a variable number of arguments with the following method. ...
1
vote
1answer
87 views

How to input pure function to package?

I would like to input a pure function into a custom written package, but am running into a variety of errors. The package I have created is as follows: ...
2
votes
1answer
80 views

Need to run evaluation 2 times

Why does this only work after running the evaluation 2 times? ...
3
votes
1answer
106 views

How to make InverseFunction work on function defined with restriction on arguments

This example works to define InverseFunction on the first argument of a function ...
-1
votes
1answer
226 views

How to define a pure function with a Module?

I was not able to use a self defined (using Module and For loops) piecewise function to fit data. It seems that the problem is that I have to define a pure function. I would like to learn how to ...
14
votes
2answers
383 views

Using several anonymous functions mixed together

This works: list // BarChart[#[[2]], ChartLabels -> DateString @@@ #[[1]], ChartStyle -> "Pastel"] & This doesn't: ...