Как написать корень n степени в корене | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Как написать корень n степени в корене

7th Oct 2019, 4:56 PM
Anoger Wer
Anoger Wer - avatar
9 Answers
+ 2
На каком языке? Если на python, то создай переменную z например, присвой ей значение pow(a, (1/b)) Получеется z = pow(a, (1/b)) Далее выполняешь нужное действие: if s == ‘(знак возведения в степень)’ print(z) Переменные a, b - числа. a - число из которого нужно извлечь корень b - степень корня s - знак операции
11th Sep 2021, 2:28 PM
Dasha Danilova
Dasha Danilova - avatar
+ 2
https://code.sololearn.com/c1HkQG7aMTjV/?ref=app Держи На телефоне не работает почему-то
11th Sep 2021, 2:36 PM
Dasha Danilova
Dasha Danilova - avatar
+ 1
Спасибо
11th Sep 2021, 2:33 PM
Anoger Wer
Anoger Wer - avatar
0
English please. (sqrt(x))^n
9th Oct 2019, 6:03 AM
WotanStorm
WotanStorm - avatar
0
Thanks
9th Oct 2019, 5:52 PM
Anoger Wer
Anoger Wer - avatar
0
But i have to warn you that i could have a misunderstood
9th Oct 2019, 6:26 PM
WotanStorm
WotanStorm - avatar
0
if u use c++ then u can write it so "#include <cmath> .... pow (x, n)" where x is your variable (sqrt(x)) and n - grade. Or so "pow (pow(sqrt(x),n), n1)"
9th Oct 2019, 7:28 PM
WotanStorm
WotanStorm - avatar
0
Ooo, thank you
9th Oct 2019, 7:57 PM
Anoger Wer
Anoger Wer - avatar
0
You're welcome
9th Oct 2019, 8:16 PM
WotanStorm
WotanStorm - avatar