Please help me in finding cube root of any number without using Built in function in java.

View Answers

December 14, 2020 at 2:53 PM

Hi,

Following examples shows how to calculate cube root without using Maths function:

package net.roseindia; public class CubeRootExample { public static void main(String args[]) { double i, dblPrecision = 0.000001; int num = 20; //Find cube root for (i = 1; (i * i * i) <= num; ++i); for (--i; (i * i * i) < num; i += dblPrecision); System.out.println("Cube root is:" + i); } }

Thanks

December 14, 2020 at 2:57 PM

Ads

Related Tutorials/Questions & Answers:

Program to Find Cube Root of any Number without using built in function Please help me in finding cube root of any number without using Built in function in java

how to find a square root of any number without using math.sqrt() method... for finding square root of any number without using system methods. Square root... to find out the square root of any number by calling math.sqrt() method. You

Advertisements

find factorial of any number using recursion error in 14 line ; expected int rec( int a) ^ how to resolve this.please correct the code. import...)); System.out.println(?enter number?); int x=Integer.parseInt(br.readLine()); int result

without using built-in functions Hai sir... Please help me to solve this... Findout occurances of each string in every another string (built - in functions are not at all allowed) all, and, sand, falling wall and sand

Cube Root Hi, Can one one please tell me how to find the cube root of any number without using any inbuilt function?? Regards: Akash

Write a program to find a factorial in any given number This programming tutorial will teach you how to write a factorial of any given number... that is equal to 24, and factorial of 0! is 0 always.Example : A program to find

Round of to a multiple of 5 without using function Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively

Round of to a multiple of 5 without using function Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively

how to find the square root and cube root of a number. This example explains you about finding the square root and cube root of a number. This tutorial... { System.out.println("Enter a Number to find Cube root : "); double cube

how to validate the telephone number without using jquery in html with javascript how to validate the telephone number without using jquery in html with javascript

closing the internet explorer window of any version without confirmation using... microsoft internet explorer window on onload event without confirmation. It should... support that new version also. any help is appreciated. Thanks, suresh

Closing any kind of browser window without confirmation using javascript ... help me in resolving this problem. It should support any kind of browser and any version. Presently am using IE8. Thanks, Suresh

program to calculate factorial of any given number. First of all define a class... Factorial Examples - Java Factorial Example to calculate factorial of any given number

Java find prime numbers without using break statement In this tutorial, you will learn how to find the prime numbers without using break statement. You all... and 50: "); for (int number = 2; number <= 50; number++) { int maxFactor

Connect a linux machine from linux using java program without password Connect a linux machine from linux using java program without password. Can anyone help me

A program to find the sum of odd number In this section you will learn how to find the sum of odd number in the series up to the given number in java... the console. Now here is the simple example which will help you to find the sum of odd

To find first two maximum numbers in an array,using single loop without sorting array. Java program to find first two maximum numbers in an array,using single loop without sorting array

To find first two maximum numbers in an array,using single loop without sorting array. Java program to find first two maximum numbers in an array,using single loop without sorting array

java program to check whether a number is pallindrome or not using recursion??????? java program to check whether a number is pallindrome or not using recursion

java program to check whether a number is pallindrome or not using recursion??????? java program to check whether a number is pallindrome or not using recursion

java program to check whether a number is pallindrome or not using recursion??????? java program to check whether a number is pallindrome or not using recursion

java program to check whether a number is pallindrome or not using recursion??????? java program to check whether a number is pallindrome or not using recursion

java program to check whether a number is pallindrome or not using recursion??????? java program to check whether a number is pallindrome or not using recursion

java program to check whether a number is pallindrome or not using recursion??????? java program to check whether a number is pallindrome or not using recursion

java program to check whether a number is pallindrome or not using recursion??????? java program to check whether a number is pallindrome or not using recursion

Built in Data Format in Excel Using POI 3.0 In this program we are using the built... OLE 2 Compound Document format using Java .POI version 3.0 APIs provides

print square of any number using c++ language, write aprogram to print the square of any number entered by the user

Program to count the number of unique words in a file using HashMap import java.io.File; import java.io.FileNotFoundException; import java.util....()); System.out.println("The number of unique words: "+uniqueValues.size

using function using a function to find the value of v from the foiiowing expression 1v=1u+1*f

how to load flash file in any browser through jsp using NetBeans IDE without embed tag I am trying to load a flash file in broser from local disk using jsps.But it's not loading. I used tag like this <object id

HOW TO FIND OUT GPS COORDINATES WITHOUT USING ONLINE DATABASE OR OTHERTHING ON MOBILE Hello Sir,, Good Morning Actually i have been... which i have to display on any java supported devive i have learned only j2me so