Do you know that the word "mean" has many meanings? Today we are going to introduce the word mean and its related functions.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
This time we introduce the functions for calculating absolute values, np.abs() and np.fabs(). The functions np.abs() and np.absolute() are the same. In addition, the difference between np.abs() and np.fabs() is that the former can handle complex numbers, so calculating complex content in np.fabs() will result in an error message.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
This section will introduce the approximation function in two parts. These functions are quite simple to use and can be completed by simply dropping the value to be processed into the parameter. The explanations are given in the diagrams.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
The final part of the approximation function. These functions are quite simple to use and can be completed by simply dropping the value to be processed into the parameter. The explanations are given in the diagrams.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
This is an introduction to the hyperbolic functions. Since hyperbolic functions have equivalent properties to trigonometric functions, you will see the words sin, cos, tan, and NumPy also provides functions for inverse hyperbolic functions. To use it, simply drop the value into the parameter.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
This time the functions are np.exp(x) and np.log(y), which are the exponential and logarithmic functions respectively. I believe you have some understanding of these functions in high school, so I won't explain the process here.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
In everything there is a positive and a negative, a black and a white.Last time we introduced np.sin(), np.cos(), and np.tan(), and this time we will introduce the inverse trigonometric functions np.arcsin(), np.arccos(), and np.arctan(). So once you have obtained the result of np.sin(), you can use np.arcsin() to deduce it back.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
In this presentation, we will introduce the trigonometric functions, without further explanation of the operations involved. However, it is important to note that the value entered in the parameter is in radians, not degrees. In the next section, we will introduce inverse trigonometric functions, etc.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
Here we are going to talk about today is np.power(x,t) and np.sqrt(x), which are other basic functions in arithmetic. First, np.power(x,t), we can also type x**t that we'll obtain the power of x, e.g. 2*np.power(2,3) is the same as 2**3, the answer will be 8.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
Similarly, we can calculate multiplication, division, quotients and remainders by using the operators *, /, //, % or with NumPy function np.mutiply(), np.divide(), np.mod(). We do not need to explain how to use them in the same way as addition and subtraction.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
We can add, subtract, multiply, divide and mod directly using program operators. Of course, numpy also offers them, both of which are the same thing.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()
np.r_ also provides us with the function np.array(), which is inconvenient to use and you can go back and review if you forget.
Wayneezzzz 發表在
痞客邦
留言(0)
人氣()