cmath help !

how do i write the formula in c++
y= xpower2 - sin power 4 * 3x in c++
and
slope = 2x - 12 sinpower3 * 3x cos 3x

1
2
3
4
5
6
7
8
9
10
11
12
13
  #include <iostream>
#include <cmath>
using namespace std;
int main ()
{
	double x, y, slope;
	cout << " Please enter the x in radian: ";
    cin >> x;
	y = x * x - pow(sin,4) * x * x * x;
	cout << slope;
	system ("pause");
	return 0;
}
sin() is a function - you need to pass it an argument, such as sin(x) or sin(3.14)
3x - you may want 3*x instead of x * x * x ?
Topic archived. No new replies allowed.