math_manipulation

 avatar
user_7676782
python
2 years ago
343 B
3
Indexable
Never
import math


def main():
    print(absSqrtAvg(9, 16))
    print(power3Sum(2, 3, 4))


def power3Sum(num1, num2, num3):
    return int(math.pow(num1, 3)) + int(math.pow(num2, 3)) + int(math.pow(num3, 3))


def absSqrtAvg(num1, num2):
    return (math.sqrt(num1) + math.sqrt(num2)) / 2


if __name__ == '__main__':
    main()