Untitled

 avatar
ketronix
c_cpp
3 years ago
426 B
11
Indexable
#include <iostream>
#include <math.h>

using namespace std;

float math(float x, float y)
{
    float pi = M_PI;
    float A = (sin(pow(x,6) - pi) / (6 + log(y * 2))) + pow(sqrt(pow(y,4) -2), 3);
    return A;
}
float math2(float x, float y)
{
    float pi = M_PI;
    float B = 1+pow(tan(abs(x/2-y)),2);
    return B;
}

int main() {
    cout << math(0.38, 2.4) << endl;
    cout << math2(0.38, 2.4) << endl;
    return 0;
}
Editor is loading...