Evaluating exp(x) * sin(x): What's the Problem?

  • Thread starter Thread starter waht
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 10K views
waht
Messages
1,502
Reaction score
4
When I generate a list x = (-10:0.1:10)

and want to evaluate it using a function

exp(x) * sin(x)

I get this error

error: operator *: nonconformant arguments (op1 is 1x101, op2 is 1x101)
error: evaluating binary operator `*' near line 4, column 11
error: evaluating assignment expression near line 4, column 3

wondering what's the problem here?
 
Physics news on Phys.org
Thanks in worked. Didn't know you had to use .* operator.