I am trying to plot a function f(x). Within the definition of f(x) I have some parameters, e.g., a, b, c tha have been defined. Then these three parameter define a new parameter R.

The function is f(x)=R x.

a := 1; Define a

1

b := 2; Define b

2

c := 3; Define c

3

R = a+2*b+3*c; Define R from a, b, c

R = 10 + 2 b~ (it should had given me 14)

F(x):=R*x; Define the function

x -> R x

plot(R*x, x = -5 .. 5); RECEIVE ERROR

Warning, expecting only range variable x in expression R*x to be plotted but found name R

I also tried to define R as R(a,b,c) and then F as F(R,x)...

but still it doesnot work.

Can anyone direct me to the right solution?

Thanks in advance.

NM