Message Boards Message Boards

0
|
3254 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to make a function of series expansion

Posted 9 years ago

I am trying to create a function but get an error message:

f[x_] = Normal@Series[Exp[-x^2], {x, 0, 14}]

Any way to circumvent that Hold attribute?

POSTED BY: Al Guy
3 Replies

Also you want to use a delayed assignment ( := )rather than an immediate one ( = ). Almost always this is what you'd want to do when creating a function.

f[x_] := Normal@Series[Exp[-x^2], {x, 0, 14}]
POSTED BY: David Reiss
Posted 9 years ago

yes , indeed, I should have cleared previous definitions.

POSTED BY: Al Guy

I do not get any error message. I looks perfectly OK to me. Maybe you just have to do a clean start of your notebook.

Henrik

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

Group Abstract Group Abstract