How do I use x as a variable in a sine function and then graph it

  • Thread starter Confused.Maths.Assignment
  • Start date
C

Confused.Maths.Assignment

I need to graph the function y=2sin 0.5 PI x
But a) it wont recognise x
b) it wont graph a sine curve
Why? and how do I fix it?
 
S

smartin

Confused.Maths.Assignment said:
I need to graph the function y=2sin 0.5 PI x
But a) it wont recognise x
b) it wont graph a sine curve
Why? and how do I fix it?

Are you actually using Excel? Regardless, your example formula needs
help because you have not shown us how to interpret it. Most
programmatic parsers will guess you mean

y = 2 * sin (0.5) * PI * x

, which is pretty silly, really, and would result in a straight line.

I assume you meant,

y = 2 * sin (0.5 * PI * x)

In Excel, you can approach this like so. If you have x values in column
A, place the following formula in column B:

=2*SIN(0.5*PI()*A2)

Create an XY chart on columns A:B. A sine curve is the result.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top