Introduction to the formula of sin function
Grammar: SIN (number)
Number is the angle, in radians, that requires a sine.
Note: If the unit of the parameter is degrees, you can multiply PI ()/180 or use the RADIANS function to convert it to
I. Requirements:
Requirements: Let the ball move along the sine wave.
The constructor of the ball is as follows:
The constructor of a spherefunction Ball (radius, color) {if (radius = = = undefined) {radius = 40;}if (color = = undefined) {color =
Long time no blog, recently in the study of WPF under the painting of bubbles, research and development process is more difficult (mainly to review the high school mathematics knowledge, MMP all forgot), this blog is mainly to provide a way for
There is no direct sine wave function in Delphi. But in scientific research, the sine wave application is very extensive, this example describes how to draw a sine curve.
For this example to draw a sine curve directly on the form, in order to
The javascriptasin method returns the arc sine of a number. If the calculated value exceeds the range of-1.0 to 1.0 or calculates the inverse sine of a non-numeric value, NaN is returned. This article describes how to use the asin function through
Draw a sine curve using js, and draw a sine from js
Math formula: y = Asin (ω x + PHI) + k
Example: http://www.zhaojz.com.cn/demo/draw7.html
Declaration of JS functions:
Copy codeThe Code is as follows:// Draw a sine curve// Dot Origin// Amplitude --
In this example, a sine curve must be drawn directly on the form. To prevent incomplete graphics from being output during window switching, the key to drawing images is
Code The Code is as follows:
Procedure tform1.formpaint (Sender: tobject
For this example to draw a sine curve directly on the form, in order to prevent the window from switching the process will output incomplete graphics, so the key to draw the graphics are placed in the form of the OnPaint process, the code is as
C language Sin () function: sine functionheader file:
#include
The sin () function is used to find the sine value of a given value, and its prototype is:
Double sin (double x);
The value given by the parameter (radians).
This is the first example of a book "The beauty of programming" compiled by Microsoft's Asia Research Institute.
The result is to draw a sine curve for the CPU utilization of the Windows Task Manager. Below is:
I. Principles
By observing, the CPU
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.