Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.9K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Simple Functions in the Wolfram Alpha app

Posted 11 years ago

Hello Everyone,

I'm a beginner in both Wolfram as in english (I'm from Brazil). I'm studying the first year of Engineering, and learning simple functions. I got a Wolfram Android and I don't know how to define a function like this example:

f(x) = 6x-2 (until here I done), but I want to put that x=2 or, x = something.

I've already tried put: f(x) = 6x-2 ; x = 2 put he understand two different things, and I want to show that x=2 is the variable tha f(x).

Just to remember I'm using the Android. This tool will help me to verify and see different forms to do same exercises.

Thanks

POSTED BY: Anderson Cruz
2 Replies
Posted 11 years ago
POSTED BY: Anderson Cruz

(I'm from Brazil)

Welcome! Give the syntax a try .... first one defines the function f

 In[231]:= Clear[f, x]
           f[x_] := 6 x  - 2

then one uses, runs or calls it, giving the argument as usual, note the brackets!

In[233]:= f[2]
Out[233]= 10

In[234]:= f /@ Range[-3, 3]
Out[234]= {-20, -14, -8, -2, 4, 10, 16}
POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard