Karthikeya Boyini has Published 2383 Articles

is_finite() function in PHP

karthikeya Boyini

karthikeya Boyini

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

28 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 ... Read More

atan() function in PHP

karthikeya Boyini

karthikeya Boyini

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

82 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.54041950027058Read More

bindec() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 09:42:52

69 Views

The bindec() function convert a binary number to decimal number.Syntaxbindec(bin_str)Parametersbin_str − The binary string to convertReturnThe bindec() function returns decimal value of the specified string bin_strExample Live DemoOutputThe output displays that the bindec() function returns a decimal value:13

Python program to check if a string is palindrome or not

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 09:38:31

3K+ Views

Given a string, our task is to check weather this string is palindrome or not.AlgorithmStep1: Enter string as an input. Step2: Using string slicing we reverse the string and compare it back to the original string. Step3: Then display the result.Example codemy_string=input("Enter string:") if(my_string==my_string[::-1]):    print("The string is a palindrome") ... Read More

acos() function in PHP

karthikeya Boyini

karthikeya Boyini

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

112 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 ... Read More

asin() function in PHP

karthikeya Boyini

karthikeya Boyini

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

94 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 ... Read More

When to use references vs. pointers in C/C++

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 09:35:51

407 Views

Reference variableReference variable is an alternate name of already existed variable. It cannot be changed to refer another variable and should be initialized at the time of declaration. It cannot be NULL. The operator ‘&’ is used to declare a reference variable.The following is the syntax of reference variable.datatype variable_name; ... Read More

Java Program to replace all occurrences of a given character in a string

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 09:35:47

2K+ Views

Use replace() method to replace all occurrences of a given character in a string.Here is our string.String str = "THIS IS DEMO LINE $$$ NEW LINE";Let us now replace all occurrences of character $ with *str.replace("$", "*")The following is the complete example that replace all occurrences of $ with *Example Live ... Read More

A single neuron neural network in Python

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 09:35:04

619 Views

Neural networks are very important core of deep learning; it has many practical applications in many different areas. Now a days these networks are used for image classification, speech recognition, object detection etc.Let’s do understand what is this and how does it work?This network has different components. They are as ... Read More

Play a video in reverse mode using Python OpenCv

karthikeya Boyini

karthikeya Boyini

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

488 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 ... Read More

Advertisements