Skip to main content
1-Visitor
November 10, 2017
Question

Multiplication as a function

  • November 10, 2017
  • 1 reply
  • 934 views

Hi all,

 

Can someone tell me how I can set up a function to perform multiplication or other simple equation.

 

So for example I have an equation of a=b*x^2 

 

In this case b is a constant and x is a variable. How do I go about getting a variety of answers for a range of x variables? i.e. if I define x:= 0,0.1...1?

 

So I am hoping to get in this case 11 outputs for a. 

 

Thanks,

 

Andy.

1 reply

25-Diamond I
November 10, 2017

Maybe that way:

 

b:=13

a(x):=b*x^2

xrange:=0,0.1..1

a(xrange)=