Python math.sin()方法 (Python math.sin() method)
math.sin() method is a library method of math module, it is used to get the sine of the number in radians, it accepts a number returns the cosine of the given number in radians.
math.sin()方法是数学模块的库方法,用于获取以弧度为单位的数字的正弦值,它接受一个以弧度为单位返回给定数字的余弦值的数字。
Note: math.sin() method accepts the only number, if we provide anything else except the number, it returns error TypeError - "TypeError: a float is required".
注意: math.sin()方法接受唯一的数字,如果我们提供除数字以外的其他任何内容,它将返回错误TypeError- “ TypeError:需要浮点数” 。
Syntax of math.sin() method: