{"id":25411,"date":"2021-11-11T09:42:23","date_gmt":"2021-11-11T04:12:23","guid":{"rendered":"https:\/\/python-programs.com\/?p=25411"},"modified":"2021-11-11T09:42:23","modified_gmt":"2021-11-11T04:12:23","slug":"python-cmath-sin-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-cmath-sin-method-with-examples\/","title":{"rendered":"Python cmath.sin() Method with Examples"},"content":{"rendered":"

cmath.sin() Method in Python:<\/strong><\/p>\n

The sine of a number is returned by the cmath.sin() method.<\/p>\n

Sine is a trigonometric function that represents the ratio of a right triangle’s opposite side to its hypotenuse.<\/p>\n

Syntax:<\/strong><\/p>\n

cmath.sin(x)<\/pre>\n

Parameters<\/strong><\/p>\n

x:<\/strong> This is Required. It is a\u00a0number that can be used to calculate the sine of<\/p>\n

Return Value:<\/strong><\/p>\n

Returns a complex value that denotes the sine of a complex number.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Complex Number = 3+4j<\/pre>\n

Output:<\/strong><\/p>\n

The given complex number's (3+4j) sine value = \r\n(3.853738037919377-27.016813258003932j)<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given realpart = 5\r\nGiven imaginary part = 2<\/pre>\n

Output:<\/strong><\/p>\n

The given complex number's (5+2j) sine value = \r\n(-3.6076607742131563+1.0288031496599335j)<\/pre>\n

Note:<\/strong> The above input format is for dynamic input.<\/p>\n

cmath.sin() Method with Examples in Python<\/h2>\n