Welcome to Dream.In.Code
Become a C++ Expert!

Join 150,163 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,384 people online right now. Registration is fast and FREE... Join Now!




roots

 
Reply to this topicStart new topic

roots, compute cube root and square root of 125

yeahboi08
23 Aug, 2008 - 04:03 AM
Post #1

New D.I.C Head
*

Joined: 23 Aug, 2008
Posts: 1

sssssss
User is offlineProfile CardPM
+Quote Post

joske
RE: Roots
23 Aug, 2008 - 04:25 AM
Post #2

D.I.C Head
**

Joined: 4 Sep, 2007
Posts: 159



Thanked: 13 times
My Contributions
QUOTE(yeahboi08 @ 23 Aug, 2008 - 02:03 PM) *

sssssss

???

anyway, to calculate the square root of a value, add the library cmath: #include <cmath>, and use the function sqrt(value). To calculate the cube root of a value, use pow(value, 1.0/3.0).
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Roots
23 Aug, 2008 - 04:26 AM
Post #3

better than jam.
Group Icon

Joined: 6 Feb, 2008
Posts: 5,837



Thanked: 104 times
Dream Kudos: 2700
Expert In: slobbing.

My Contributions
ssssssssssssssssssssssssssssssssssssss

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/9/09 02:48AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month