สถานะการส่งล่าสุด: -

SOS11: Some Arithmetic

Arithmetic

Given some number, x, print the value which pucked in formula and print it

Example of using math module

>>> math.cos(math.pi)
-1.0
>>> math.e
2.718281828459045
>>> math.factorial(5)
120

Example
\(f(x)=2*x+5\) -> print(2*x+5)

import math
x = int(input('Enter x'))  # auto input


\(f(x)=x^2+5x-3\)



\(f(x)={\huge \frac{e^x-e^{-x}}{2}} \)



\(f(x)= x!\)