PandA-2024.02
module.c
Go to the documentation of this file.
1 #include <math.h>
2 float formula_pow(float a, float b, float c)
3 {
4  return acosf((powf(a,2) + powf(b,2) - powf(c,2))/(2*a*b));
5 }
6 
7 float formula_mult(float a, float b, float c)
8 {
9  return acosf((a*a + b*b - c*c)/(2*a*b));
10 }
11 
12 double double_formula_pow(double a, double b, double c)
13 {
14  return acos((pow(a,2) + pow(b,2) - pow(c,2))/(2*a*b));
15 }
16 
17 double double_formula_mult(double a, double b, double c)
18 {
19  return acos((a*a + b*b - c*c)/(2*a*b));
20 }
double double_formula_pow(double a, double b, double c)
Definition: module.c:12
float formula_pow(float a, float b, float c)
Definition: module.c:2
double double_formula_mult(double a, double b, double c)
Definition: module.c:17
float formula_mult(float a, float b, float c)
Definition: module.c:7

Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by doxygen 1.8.13