Group Abstract Group Abstract

Message Boards Message Boards

Trouble defining a function

Posted 12 years ago

Hey Can someone tell what I do wrong? Above in line 20 i want to define a function f(x). And then i want to calculate f(2). But nothing happens. Why? Screenshot of my mathematica

POSTED BY: Ko Ba
3 Replies
Posted 12 years ago
Attachments:
POSTED BY: Bill Simpson
Posted 12 years ago

"=" beginning a line sends the rest of the line to WolframAlpha.com. Mathematica displays the beginning "=" in orange to show the rest of the line was sent to WolframAlpha.com. WolframAlpha.com does not understand or support function definitions.

Try the same without pressing "=" at the beginning of the line. That will send the line to Mathematica, which is different, and understands function definitions.

POSTED BY: Bill Simpson
Posted 12 years ago

Hi Bill

Thx for your answer, but I can not make it work. I am now trying to define a function in first line without starting with a "=". And then in next line i type ind f[1]. How do I make mathematica to respond and calculate f[1]=1+2?

screenshot mathematica

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