Answers for "pow"

20

pow c++

#include <iostream>
#include <cmath>
using namespace std;
int main ()
{
  double base, exponent, result;		
  base = 3.4;	
  exponent = 4.4;	
  result = pow(base, exponent);		
  cout << base << "^" << exponent << " = " << result;		
  return 0;
}
Posted by: Guest on January-10-2020
1

c++ power

/* pow example */
#include <stdio.h>      /* printf */
#include <math.h>       /* pow */

int main ()
{
  printf ("7 ^ 3 = %f\n", pow (7.0, 3.0) );
  printf ("4.73 ^ 12 = %f\n", pow (4.73, 12.0) );
  printf ("32.01 ^ 1.54 = %f\n", pow (32.01, 1.54) );
  return 0;
}
Posted by: Guest on November-18-2020
0

pow

whoooooo kid
Posted by: Guest on April-16-2021
0

math.pow vs math.exp

Math. Pow computes x y for some x and y. Math. Exp computes e x for some x, where e is Euler's number.
Posted by: Guest on December-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language