Could someone please point me to somewhere where I can get a full
complete reference of the C++ Standard Libaries, how to use all their
functions and global varibles.
Is there any function in the Stdlib for getting the cubic root of a
number?
Thanks,
-JKop 8 5583
Why didn't you try :
pow ( x, 1.0 / 3.0 )
Boris
"JKop" <NU**@NULL.NULL> wrote in message
news:uT******************@news.indigo.ie... Could someone please point me to somewhere where I can get a full complete reference of the C++ Standard Libaries, how to use all their functions and global varibles. www.dinkumware.com
john
"John Harrison" <jo*************@hotmail.com> wrote in message
news:c6************@ID-196037.news.uni-berlin.de... "JKop" <NU**@NULL.NULL> wrote in message news:uT******************@news.indigo.ie... Could someone please point me to somewhere where I can get a full complete reference of the C++ Standard Libaries, how to use all their functions and global varibles.
www.dinkumware.com
And there you will find that cbrt is a C99 function. It's not
required for Standard C++. The C++ committee recently voted to
add cbrt and all the other C99 additions to TR1 the (non-normal)
addition to the Standard C++ library currently being developed.
We, of course, already offer it as part of our C/C++ library.
You can, of course, use pow(x, 1.0 / 3.0), but it is typically
way slower and not nearly as accurate as cbrt, at least with
most libraries and some values of x. My bet is that it will do
what you need quite nicely, however.
P.J. Plauger
Dinkumware, Ltd. http://www.dinkumware.com
"P.J. Plauger" <pj*@dinkumware.com> wrote "John Harrison" <jo*************@hotmail.com> wrote
"JKop" <NU**@NULL.NULL> wrote in message news:uT******************@news.indigo.ie... Could someone please point me to somewhere where I can get a full complete reference of the C++ Standard Libaries, how to use all their functions and global varibles.
www.dinkumware.com
And there you will find that cbrt is a C99 function. It's not required for Standard C++. The C++ committee recently voted to add cbrt and all the other C99 additions to TR1 the (non-normal) addition to the Standard C++ library currently being developed. We, of course, already offer it as part of our C/C++ library.
You can, of course, use pow(x, 1.0 / 3.0), but it is typically way slower and not nearly as accurate as cbrt, at least with most libraries and some values of x. My bet is that it will do what you need quite nicely, however.
Yeah, sure, but when will they add the really useful functions like
one_plus_fourth_root_of_n_all_over_two_pi()?
Claudio Puviani
Claudio Puviani posted: "P.J. Plauger" <pj*@dinkumware.com> wrote "John Harrison" <jo*************@hotmail.com> wrote
> "JKop" <NU**@NULL.NULL> wrote in message > news:uT******************@news.indigo.ie... > > Could someone please point me to somewhere where I can get a
full > > complete reference of the C++ Standard Libaries, how to use
all > > their functions and global varibles. > > > > www.dinkumware.com
And there you will find that cbrt is a C99 function. It's not required for Standard C++. The C++ committee recently voted to add cbrt and all the other C99 additions to TR1 the (non-normal) addition to the Standard C++ library currently being developed. We, of course, already offer it as part of our C/C++ library.
You can, of course, use pow(x, 1.0 / 3.0), but it is typically way slower and not nearly as accurate as cbrt, at least with most libraries and some values of x. My bet is that it will do
what you need quite nicely, however.
Yeah, sure, but when will they add the really useful functions like one_plus_fourth_root_of_n_all_over_two_pi()?
Claudio Puviani
I think it'd be a fairly common opinion that "cbrt" would be allot
more commonly used than your contrived example.
"JKop" <NU**@NULL.NULL> wrote Claudio Puviani posted:
"P.J. Plauger" <pj*@dinkumware.com> wrote And there you will find that cbrt is a C99 function. It's not required for Standard C++. The C++ committee recently voted to add cbrt and all the other C99 additions to TR1 the (non-normal) addition to the Standard C++ library currently being developed. We, of course, already offer it as part of our C/C++ library.
You can, of course, use pow(x, 1.0 / 3.0), but it is typically way slower and not nearly as accurate as cbrt, at least with most libraries and some values of x. My bet is that it will do what you need quite nicely, however.
Yeah, sure, but when will they add the really useful functions like one_plus_fourth_root_of_n_all_over_two_pi()?
I think it'd be a fairly common opinion that "cbrt" would be allot more commonly used than your contrived example.
When you're done studying C++, you might want to direct your attention to the
concept of humor. It will help you on those occasions when regulars of this
newsgroup fire off jokes at each other.
Claudio Puviani
Claudio Puviani posted: "JKop" <NU**@NULL.NULL> wrote Claudio Puviani posted:
> "P.J. Plauger" <pj*@dinkumware.com> wrote >> And there you will find that cbrt is a C99 function. It's not >> required for Standard C++. The C++ committee recently voted to >> add cbrt and all the other C99 additions to TR1 the (non-
normal) >> addition to the Standard C++ library currently being developed. >> We, of course, already offer it as part of our C/C++ library. >> >> You can, of course, use pow(x, 1.0 / 3.0), but it is typically >> way slower and not nearly as accurate as cbrt, at least with
most >> libraries and some values of x. My bet is that it will do what
you >> need quite nicely, however. > > Yeah, sure, but when will they add the really useful functions
like > one_plus_fourth_root_of_n_all_over_two_pi()? I think it'd be a fairly common opinion that "cbrt" would be allot more commonly used than your contrived example.
When you're done studying C++, you might want to direct your
attention to the concept of humor. It will help you on those occasions when regulars of this newsgroup fire off jokes at each other.
Claudio Puviani
Sorry, I assumed your post was sarcasm.
> You can, of course, use pow(x, 1.0 / 3.0), but it is typically way slower and not nearly as accurate as cbrt, at least with most libraries and some values of x. My bet is that it will do what you need quite nicely, however.
Could you tell me(us) more about the speed and accuracy? Of if you have
some links to some documentation.
Gunnar This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lawrence |
last post by:
My company is leasing a server from Interland, which is a very large
web hosting company. I assume Interland knows how to set up a BSD
server with the usual add-ons, including PHP. But when I run...
|
by: Philip KOCH |
last post by:
I'm trying to calculate the cubic root of a fonction, what syntax should I
use?
Thanx
PHIL
|
by: Stig Brautaset |
last post by:
Hi group,
I'm playing with a little generic linked list/stack library, and have a
little problem with the interface of the pop() function. If I used a
struct like this it would be simple:
...
|
by: Kishor |
last post by:
Hi Friends
Please help me to write a C program to find the 5th (fifth) root of a given number.
Ex:(1) Input : 32
Output : 5th root of 32 is 2
Ex:(1) Input : 243
Output : 5th root of 243 is...
|
by: Nalaka |
last post by:
Hi,
I have an asp.net web application (www.myWebSite), and a subweb application
(www.myWebSite/subSite).
How do I set it so that, subweb application (www.myWebSite/subSite) be the
root...
|
by: shiva359 |
last post by:
Hi ,
could someone throw some light on why do default
software when installed ( as root for creating an instance
leaves us with some world accessable directories & some ...
|
by: Peng Yu |
last post by:
Hi,
I'm wondering how to get the cubic root for a complex number? It seems
that cbrt does not work complex numbers.
Thanks,
Peng
#include <complex>
#include <iostream>
|
by: Peng Yu |
last post by:
Hi,
I have the following program which computes roots of a cubic function.
The solution is sensitive to the type, which is due to the truncation
error. 'long double T' gives three solutions, and...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |