Solved

qube root

Posted on 2000-03-03
3
166 Views
Last Modified: 2010-04-10
In C++ how do you use or create the function quberoot?
0
Comment
Question by:jlyle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:jlyle
ID: 2582038
e-mail jlyle@greco.com
0
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 2582232
You can use the pow() function defined in math.h.  pow(x,y )This computes the value of x to the power of y (x^y).

The cube root of something is simply that thing to the power of 1/3 so you just need to use pow(x,1.0/3.0)

Let me know if you have any questions.
0
 
LVL 84

Expert Comment

by:ozo
ID: 2582541
Would you need the function to return an exact value for cbrt(-1000)?
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VS2015 compilation and missing DLLs 9 190
Android development question 2 108
learn programming 8 94
Need some help with design 17 46
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question