Expm1 Function in PHP

Samual Sam
Updated on 26-Jun-2020 09:47:39

72 Views

The expm1() function Returns e raised to the power x - 1 i.eex -1Syntaxexpm1(val)Parametersval − This is the powerReturnThe expm1() function Returns e raised to the power x - 1Example Live DemoOutput01.718281828459Let us see another example −Example Live DemoOutpute^1-1 = 1.718281828459

Floor Function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:47:17

176 Views

The ceil() function rounds a number down to the nearest integer.Syntaxfloor(num)Parametersnum − The number to round upReturnThe floor() function Returns the value rounded up to the nearest (down) integer.Example Live DemoOutput0 0Let us see another example −Example Live DemoOutput9Let us see another example −Example Live DemoOutput7 -5

fmod Function in PHP

Samual Sam
Updated on 26-Jun-2020 09:46:50

218 Views

The fmod() function Returns the modulo of dividend/ divisor. Floating modulo in fmod.Syntaxfmod(dividend/ divisor)Parametersdividend − The number to be divided.divisor − This is the number that divides.ReturnThe fmod() function Returns the remainder of dividend/ divisor.Example Live DemoOutput3

Hexdec Function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:46:17

124 Views

The hexdec() function converts hexadecimal number to decimal number.Syntaxhexdec(val)Parametersval − The hexadecimal to be converted.ReturnThe hexdec() function Returns the decimal value of val, which is hexadecimal.Example Live DemoOutput1314735

Remove Cancelled Tasks from Timer's Task Queue in Java

George John
Updated on 26-Jun-2020 09:46:03

352 Views

One of the methods of the Timer class is the int purge() method. The purge() method removes all the canceled tasks from the timer’s task queue. Invoking this method does not affect the behavior of the timer, rather it eliminates references to the canceled tasks from the queue. The purge() method came into existence since JDK 1.5.The purge() method acts as a medium for space-time tradeoff where it trades time for space. More specifically, the time complexity of the method is proportional to n + c log n, where n is the number of tasks in the queue and c ... Read More

Hypot Function in PHP

Samual Sam
Updated on 26-Jun-2020 09:45:55

115 Views

The hypot() function is used to calculate the hypotenuse of a right-angle triangle. It Returns the length of the hypotenuse in float. Of a right-angled triangle, the longest side is hypotenuse.Syntaxhypot(a, b)Parametersa − Length of first sideb − Length of second sideReturnThe hypot() function Returns the length of the hypotenuse in float.Example Live DemoOutput8.24621125123538.5440037453175

is_finite Function in PHP

karthikeya Boyini
Updated on 26-Jun-2020 09:45:33

65 Views

The is_finite() function checks if a value is finite or not. It Returns true if num is a finite number, else it Returns false.Syntaxis_finite(num)Parametersnum − The number to be checked.ReturnThe is_finite() function Returns true if num is a finite number, else it Returns false.Example Live DemoOutput1Let us see another example −Example Live DemoOutput

Is Infinite Function in PHP

Samual Sam
Updated on 26-Jun-2020 09:44:22

93 Views

The is_infinite() function checks if a value is infinite or not. It Returns true if num is an infinite number, else it Returns false.Syntaxis_infinite(num)Parametersnum − The number to be checked.ReturnThe is_infinite() function Returns true if num is an infinite number, else it Returns false.ExampleExample Live DemoOutput1

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

Schedule a Task for Execution in Java

Chandu yadav
Updated on 26-Jun-2020 09:43:24

6K+ Views

One of the methods in the Timer class is the void schedule(Timertask task, Date time) method. This method schedules the specified task for execution at the specified time. If the time is in the past, it schedules the task for immediate execution.Declaration −The java.util.Timer.schedule(Timertask task, Date time) is declared as follows −public void schedule(Timertask task, Date time)There are few exceptions thrown by the schedule(Timertask task, Date time) method. They are as follows −IllegalArgumentExceptionThis exception is thrown if time.getTime() is negativeIllegalStateExceptionThis exception is thrown if task was scheduled or cancelled beforehand, timer was cancelled, or timer thread terminated.NullPointerExceptionThis exception is thrown ... Read More

Advertisements