C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C++ Math cbrt()This function is used to find the cube root of a given number. Consider a argument 'arg' :Cube root of a number : ∛arg SyntaxSyntax would be : double cbrt(double arg); float cbrt(float arg); long double cbrt(long double arg); double cbrt(integral arg); Parameterarg : It is the value of float or integer type. Return valueIt returns the cube root of a given number arg. Example 1Let's see a simple example when argument 'arg' is of integer type #include Output: Cube root of a number is :2 Example 2Let's see a simple example when an argument 'arg' is of float type. #include Output: Cube root of a number is :2.33921
Next TopicC++ Math Functions
|