V
V
Vasyyliiii2021-10-19 14:05:09
Python
Vasyyliiii, 2021-10-19 14:05:09

What's wrong with the formula?

There is a task - y=(a^4+3.3)*√(a^3)+√(√(7+b)) . Output value behind this formula, here is my formula - (a**4 + 3.3) * math.sqrt(a**3) + math.sqrt(math.sqrt(7+b)) . In the task itself, the input is given - a=2, b=3 and the output is 54.588643507601475
But using my formula, I get - 56.366922917640395
Here is the whole code -

import math
a = 2
b = 3
print((a**4 + 3.3) * math.sqrt(a**3) + math.sqrt(math.sqrt(7+b)))

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-10-19
@Vasyyliiii

Incorrect some conclusion in the answer, or the formula was incorrectly rewritten
We take out the calculator and count.
1) 16+3.3 = 19.3
2) 19.3 * 2.828 = 54.5804
We got the number almost the same as in the answer, only the second calculation of the roots has not yet been added to it, which will give a number clearly greater than one
wolframalpha

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question