Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12143
| From | pw <p.willis@telus.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to convert the expression 3*x to a function in |
| Date | 2012-10-22 06:11 +0000 |
| Message-ID | <k62o2k$cho$1@smc.vnet.net> (permalink) |
| References | <20121021061016.A03EE684B@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On 10/20/2012 11:10 PM, pedro_fr_22@hotmail.com wrote: > In doing a program in Mathematica that receives an expression called f and converts it to a function. However the command Function[x,f] doesn't work, what do I do? > > (*---The Function Declaration---*) MyFunction[x_, c_] := x*c (*---Calling The Function---*) x = 12 B = MyFunction[x , 3] Or if you always want to multiply by 3, MyFunction[x_] := x*3 x = 12 B = MyFunction[x] Peter
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to convert the expression 3*x to a function in pw <p.willis@telus.net> - 2012-10-22 06:11 +0000
csiph-web