Average Error: 31.3 → 31.3
Time: 4.4s
Precision: binary64
\[{\left(\sin x\right)}^{2.39999999999999991} + 2 \cdot \log \left(x \cdot x\right)\]
\[{\left(\sin x\right)}^{2.39999999999999991} + 2 \cdot \log \left(x \cdot x\right)\]
{\left(\sin x\right)}^{2.39999999999999991} + 2 \cdot \log \left(x \cdot x\right)
{\left(\sin x\right)}^{2.39999999999999991} + 2 \cdot \log \left(x \cdot x\right)
double code(double x) {
	return ((double) (((double) pow(((double) sin(x)), 2.4)) + ((double) (2.0 * ((double) log(((double) (x * x))))))));
}
double code(double x) {
	return ((double) (((double) pow(((double) sin(x)), 2.4)) + ((double) (2.0 * ((double) log(((double) (x * x))))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 31.3

    \[{\left(\sin x\right)}^{2.39999999999999991} + 2 \cdot \log \left(x \cdot x\right)\]
  2. Final simplification31.3

    \[\leadsto {\left(\sin x\right)}^{2.39999999999999991} + 2 \cdot \log \left(x \cdot x\right)\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(+ (pow (sin x) 2.4) (* 2 (log (* x x))))"
  :precision binary64
  (+ (pow (sin x) 2.4) (* 2.0 (log (* x x)))))