In flash, the math class is a very common class. Through mathematical computation, we can achieve a lot of wonderful results. Here we will start from the most basic learning and add a math knowledge.
Let's take a look at the math class provided in
Some Math object methods can implement some mathematical calculations in our textbooks. The following are commonly used methods:
1. Math. min () and Math. max () return the minimum and maximum values of the parameters respectively.
Example:
Alert
1. Math. min () and Math. max () return the minimum and maximum values of the parameters respectively. Example:Alert (Math. min (1, 2, 3) // output "1"Alert (Math. max (1, 2, 3) // output "3"2. Math. abs () returns the absolute value of the
1. Math. Min () and math. Max () return the minimum and maximum values of the parameters respectively.
Example:
Alert (math. Min (1, 2, 3) // output "1"
Alert (math. Max (1, 2, 3) // output "3"
2. Math. Abs () returns the absolute value of the
The Python exp () function describes the exp () function that returns the exponent of x, the syntax import mathmath.exp (x) NOTE: exp () is not directly accessible, you need to import the math module and call the method from a static object.
Remember: what kind of math education do we need?Note: This article has a lot of personal views, with a very strong subjective color. Some of these ideas are not necessarily correct, and there are some words that I am not qualified to say. I just
Microsoft has released a math plug-in for Word 2007 that allows Office users to easily perform a variety of mathematical operations that complement the computing capabilities of Word 2007 itself.Microsoft Math add-in for Word 2007 main features:1.
XNA Math VectorsIn Direct3D 9 and 10, the calculations for the D3DX library support vectors and other core types are included in the math library. In Direct11, the D3DX library is not included in the math library, but instead is the XNA Math Library.
First, the Math object Overview:The purpose of the math (arithmetic) object is to: perform common arithmetic tasks. Save mathematical formulas and information.The Math object provides a much faster execution of the computational functionality than
1. Function callIn programming, a function is a name combination of a series of statements used for a certain calculation. When defining a function, you must specify the function name and write a series of program statements. Then, you can use the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.