User Tools

Site Tools


qna:lab-session:code3
#include <stdio.h>
#include <math.h>
 
double ypoteinousa(double a, double b) {
    return sqrt( a*a + b*b );
}
 
void proveUnitCycle() {
    double f = M_PI / 4;
    printf("%lf\n", ypoteinousa(
                       sin(f),
                       cos(f)
                    )
           );
}
 
int main() {
    proveUnitCycle();
    return 0;
}
qna/lab-session/code3.txt · Last modified: 2024/04/24 15:40 by xallos