Found 33676 Articles for Programming

atan2() function in PHP

Samual Sam
Updated on 26-Dec-2019 10:28:28

136 Views

The atan2() function returns the arc tangent of two variables.Syntaxatan2(val1, val2)Parametersval1 − The dividendval2 − The divisorReturnThe atan2() function returns the arc tangent of val2/ val1 in radians. The returned value is between -Pi and Pi.Example Live DemoOutput0.785398163397450.78539816339745ExampleLet us see another example − Live DemoOutput-2.3561944901923-2.2318394956456

atan() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:43:59

122 Views

The atan() function return the arc tangent of a number. It returns a float, which is a numeric value between -Pi/2 and Pi/2 radians.Syntaxatan(val)Parametersval − The value for which you want to get the arc tangent.ReturnThe atan() function returns the arc tangent of a number.Example Live DemoOutput1.5208379310731.10714871779410.54041950027058-0.54041950027058

asinh() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:36:21

162 Views

The asinh() function returns the inverse hyperbolic sine of a number.Syntaxasinh(num)Parametersnum − The number to be specified.ReturnThe asinh() function returns the inverse hyperbolic sine of a number.Example Live DemoOutput0.881373587019541.3258977669011

asin() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:36:44

147 Views

The asin() function returns the arc sine of a number. It specifies a number in the range -1 to 1. Returns NaN, if num is not in the range -1 to 1.Syntaxasin(num)Parametersnum − The number for which you want to return the arc sine. Specifies a number in range -1 to 1.ReturnThe asin() function returns the arc sine of a number. It specifies a number in the range -1 to 1. Returns NaN, if num is not in the range -1 to 1.Example Live DemoOutput0.5235987755983-1.1197695149986Let us see another example −Example Live DemoOutput01.5707963267949-1.5707963267949NAN

acosh() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:37:08

147 Views

The acosh() function returns the inverse hyperbolic cosine of the specified number.Syntaxacosh(num)Parametersnum − The number for which we want the inverse hyperbolic cosine.ReturnThe acosh() function returns the inverse hyperbolic cosine of a number.Example Live DemoOutput01.0469679150032

acos() function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:37:44

232 Views

The acos() function returns the arc cosine of a number. It specifies a number in the range -1 to 1. Returns NaN, if num is not in the range -1 to 1.Syntaxacos(num)Parametersnum − The number for which you want to return the arc cosine. A number in range -1 to 1.ReturnThe acos() function returns the arc cosine of the specified number.Returns NaN, if number is not in the range -1 to 1.Example Live DemoOutput1.04719755119662.6905658417935Let us see another example −Example Live DemoOutput1.570796326794903.1415926535898NAN

abs() function in PHP

Samual Sam
Updated on 26-Jun-2020 09:38:08

258 Views

The abs() function returns the absolute value of a number.Syntaxabs(num)Parametersnum − The number for which we want to get the absolute value. If the num is float, then the return type will be float, otherwise it is an integer.ReturnThe abs() function returns the absolute value of the specified number.Example Live DemoOutput3.19.7Let us see another example −Example Live DemoOutput2050

Turtle programming in Python

karthikeya Boyini
Updated on 27-Aug-2023 03:38:10

59K+ Views

Turtle is a special feature of Python. Using Turtle, we can easily draw in a drawing board.First, we import the turtle module. Then create a window, we create a turtle object, and using the turtle() method we can draw on the drawing board. Some turtle method METHOD PARAMETER DESCRIPTION Turtle() None It creates and returns a new turtle object forward() amount It moves the turtle forward by the specified amount backward() amount It moves the turtle backward by the specified amount right() angle It turns the turtle clockwise ... Read More

Play a video in reverse mode using Python OpenCv

karthikeya Boyini
Updated on 26-Jun-2020 09:29:05

711 Views

The full form of OpenCv is Open Source Computer Vision, using this library we can perform different operations on images, videos.Application areas of OpenCVFacial recognition systemMotion trackingArtificial neural networkDeep neural networkVideo streaming etc.For installing on Windows we can use this command linepip install opencv-pythonFor Linux −sudo apt-get install python-opencvTo complete our task we have to follow some steps −Step 1: We import OpenCv library named cv2. Step 2: Take a video as input data. Step 3: First we break the video into a number of frames and store all these frames in a list. Step 4: When we are getting ... Read More

Read and Write to an excel file using Python openpyxl module

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

6K+ Views

Python provides openpyxl module for operating with Excel files. How to create Excel files, how to write, read etc. can be implemented by this module. For installing openpyxl module, we can write this command in command prompt pip install openpyxl If we want to give a sheet title name Example code import openpyxl my_wb = openpyxl.Workbook() my_sheet = my_wb.active my_sheet_title = my_sheet.title print("My sheet title: " + my_sheet_title) Output My sheet title:Sheet To change Title Name Example code import openpyxl my_wb = openpyxl.Workbook() my_sheet = my_wb.active my_sheet.title = "My New Sheet" print("sheet name ... Read More

Advertisements