Question about Computers & Internet

2 Answers

C code code to give the output square root of an entered number without using library function math.h

Posted by on

  • Scott Winder
    Scott Winder May 11, 2010

    Please give more context so that we know we are not doing your homework for you.

×

Ad

2 Answers

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Novelist:

    An expert who has written 50 answers of more than 400 characters.

    Champion:

    An expert who has answered 200 questions.

  • Expert
  • 202 Answers

I don't know why u  asked for such a small problem.

This is the code. (works with TC++ v3) Have it. Enjoy :)

U may write on it to have a better output with some other datatype, if u want...

#include<stdio.h>
#include<conio.h>

float a, b, tmp;

void rooter()
{
tmp=b;
b=b-((b*b-a)/(2*b));
printf("\n%f",b);
if(tmp!=b) rooter();
}

void main()
{
clrscr();
printf("\n\n\n\t\t\t***********SQUARE ROOT OF A NUMBER***********\n\nPlease enter the number\t: ");
scanf("%f",&a);
b=1;
rooter();
getch();
}

Posted on Jan 24, 2008

Ad
  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that has over 10 points.

    Mayor:

    An expert whose answer got voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 11 Answers

Sqrt value will do for u

Posted on Jan 24, 2008

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this issue over the phone in a minute or two.

Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

Here's a link to this great service

Good luck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How to do fifth square roots


If you mean the fifth root, use the xth-root function (MATH 5). For example, to calculate the fifth root of 32, press 5 MATH 5 3 2 ENTER

Jan 19, 2014 | Texas Instruments TI-83 Plus Calculator

1 Answer

How do i use the cube root function? i can find the square root function, but at present it does not seem that the calculator has a cube root function.


There's a cube root function as the fourth item in the MATH menu. The fifth item is a general root function.

For example, to calculate the cube root of 8, press MATH 4 8 ENTER

Feb 21, 2011 | Texas Instruments TI-84 Plus Calculator

1 Answer

I dont know how to solve a squareroot problem with a little exponet in front of the square root


Use the xth-root function accessible by pressing MATH 5. For example, to find the third root of 8, press 3 MATH 5 8 ENTER.

Nov 25, 2010 | Texas Instruments TI-83 Plus Silver...

1 Answer

I'm doing radicals I need to type an exponent into my calculator that goes before the square root not after. how do i do that (5) as an exponent square root of 32.....the answer is 2 but how do i type it...


Use the xth-root function to compute any root. It's the fifth entry on the MATH menu, which you can get by pressing the MATH key. The fourth entry on the same menu gives you the third root without needing the 3 to be specified.

For example, to compute the 5th root of 32, press 5 MATH 5 3 2 ENTER.

Oct 21, 2010 | Texas Instruments TI-83 Plus Calculator

1 Answer

How do I use the TI 84 to solve for the x root? X= 18 ??


Press MATH to get to the MATH menu. There you'll see two different root functions there. Square root is on the keyboard as the 2ND shift of the square key.

May 18, 2010 | Texas Instruments TI-84 Plus Calculator

1 Answer

The TI-84 Plus Silver Edition - when dealing with roots and powers - how do you punch in the third root of or the fourth root of... also, how do you punch in ...the 3rd root of 8 cubed? or the 2nd root of...


Press the MATH key to bring up the Math menu. Option 3 gives you cubed, option 4 gives you cube root, option 5 gives you nth root.

For example, 3rd root of 8: MATH 4 8 ENTER gives 2.

4th root of 16: 4 MATH 5 16 ENTER gives 2.

Apr 01, 2010 | Texas Instruments Office Equipment &...

2 Answers

I need to know how to enter anything above cube root into my TI-83.


  1. Use the universal power key marked with [^].
  2. To avoid problems if the exponent is an expression, enclose it in parentheses.
  3. To enter any power type number^(exponent)
  4. If exponent is negative use the (-) change sign key next to the dot, below the 3 key.
  5. To calculate the roots (cubic, fourth, fifth, etc.) roots use the fact that a root of n-th order can be represented as ^(1/n)
  6. Ex: cube root of 27: 27^(1/3); square root of 64 : 64^(1/2) or 64^(0.5)

Feb 26, 2010 | Texas Instruments TI-83 Plus Calculator

3 Answers

Entering a cubed root into a ti-83 plus


You can enter any root by typing the number, then hitting MATH and 5, which brings up the root symbol with the x in front of it: x√. So the fifth-root would be 5 -> MATH -> 5 and then whatever number you want to get the fifth-root for: 5x√10 for example. As someone else had mentioned, you can also raise it to a rational power: 3^(1/3) which would be the same as the cubed root of 3, but you could also type: 3 -> MATH -> 5 -> 3 and get the same answer, but looking like this in your calculator: 3x√3. The option for 4 actually is a predefined cubed-root, and the one for option 5 there is the root symbol that can be used with any number before it to get any root you want. There are no parenthesis as you get when using the predefined square-root and cubed-root functions, though, so you may want to type them in yourself if entering a long string of operations in the calculator at one time to make sure the calculator doesn't include numbers under the root that you don't want it to. But I guess it depends on preference in terms of what method you choose between the rational exponents or the root symbol (and most would go with whichever seems easiest and quickest to enter), but you asked specifically how to get the cubed-root on the TI-83 Plus, so there's my best attempt at answering your question.

Aug 22, 2008 | Texas Instruments TI-83 Plus Calculator

6 Answers

HOW TO FIND CUBE ROOT


There is a way to do it. I believe you go into "complex" or "math" buttons. These buttons are yellow on the calculator. Therefore, to access them you must hit "2nd" then the button.

Better yet, you can also get around this dilemma another way. You can enter "the cubed root of x" by raising x to 1/3.

For example the cubed root of x = x^(1/3). It is best to place parentheses around 1/3 so the calculator knows exactly what you mean.

Another example, the "cubed root of (x + 1)" can be entered by:
(x+1)^(1/3) Note the parenteses around both (x+1) and (1/3). This applies if the radical cover both "x" and "1".

Hope this helps.

Oct 03, 2007 | Texas Instruments TI-86 Calculator

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

86 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18425 Answers

Alun Cox

Level 3 Expert

2678 Answers

David Payne
David Payne

Level 3 Expert

14162 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...