?
Solved

qube root

Posted on 2000-03-03
3
Medium Priority
?
177 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

649 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