Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.2K Views
|
5 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Best way to define composite function of arbitrary function?

I'm still learning Mathematica. Where do I find documentation on how to use a generalized real-value function as an argument in a function?

The attached notebook is the simplest example I could think of, though it would be a handy tool in itself if it worked. Specific questions are in the comments.

As I said, I'm still learning Mathematica. So where there's a choice, please use explicit forms of the commands.

Thanks.

POSTED BY: Jay Gourley
5 Replies
Attachments:
POSTED BY: Jay Gourley
POSTED BY: Gianluca Gorni
POSTED BY: Henrik Schachner
Posted 4 years ago

For ff we can also use SubValues which is a WL concept similar to Currying.

ClearAll@ff
ff[t_, z_][x_] := x^3/t + z

myPlot[ff[3, 7], x, -2, 2]

Information@ff
POSTED BY: Rohit Namjoshi

Thanks, Henrik. Sorry for the delayed gratitude. I had hoped to study up on pure functions before now. It may be the weekend before I do. In the meantime, I want you to know, I appreciate the help. I'll add to this thread when I get a chance top try out your suggestion.

POSTED BY: Jay Gourley
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard