Solved

Visual C++ maths

Posted on 2011-03-24
11
299 Views
Last Modified: 2012-06-27
Hi Experts,
                        How to apply differentiation using VC++ is there any direct function for this.

Regards,
Vimal
0
Comment
Question by:vimalalex
  • 4
  • 3
  • 3
  • +1
11 Comments
 
LVL 32

Expert Comment

by:phoffric
ID: 35209292
Sorry, there is no differentiation built-in function in the C++ Standard Library.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 35209301
Here is what is available in Math:
   http://www.cplusplus.com/reference/clibrary/cmath/
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 35209356
You could try one of these libraries.
http://www.mathtools.net/C_C__/Calculus/index.html 
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Author Comment

by:vimalalex
ID: 35217209
Hi All,

                      I am using Visual C++ is there any opensource or free library for thus purpose.

Regards,
Vimal.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 35217295
I found this one:
   http://sourceforge.net/projects/calculus/

But this one has more recommendations:
   http://sourceforge.net/projects/gattmath/
0
 
LVL 32

Accepted Solution

by:
phoffric earned 250 total points
ID: 35217890
This site grants you permission to download this book:
     http://astronu.jinr.ru/wiki/upload/d/d6/NumericalRecipesinC.pdf

You can copy the c code from it, and with the lengthy explanations, you can customize it for your needs.

(Note: The previous links I provided are for languages other than C/C++.)
0
 
LVL 20

Expert Comment

by:thehagman
ID: 35238722
What is your exact question? Do you want *formal* or *numerical* derivatives?
0
 
LVL 2

Author Comment

by:vimalalex
ID: 35242616
HI thehagman,
           
                 I am looking for a good library in windows C++ for applying in differentiation based  problems.

Regards,
Vimal
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 35244450
I'm farily sure he wants symbolic calculations (based on other questions he's asked).
Vimal, do you need a C++ library or do you just want a calculator?
This one works well
http://www.solvemymath.com/online_math_calculator/calculus/derivative_calculator/index.php
Also, if you want high tech, you could use MATLAB, Maple, or Wolfram Alpha

Wolfram Alpha is basically awesome. It's like Google for math (and more). Go to it
http://www.wolframalpha.com/
 and type something like
differentiate x^2 + 3x
It will give you the answer and you can click 'show steps' to get the details. It also shows the graph. It does integration too.
0
 
LVL 2

Author Comment

by:vimalalex
ID: 35261144
Hi TommySzalapski,

                 I need C++ library.
Regards,
Vimal
0
 
LVL 37

Assisted Solution

by:TommySzalapski
TommySzalapski earned 250 total points
ID: 35261292
GiNaC may be the best free one out there
http://www.ginac.de/

It (and any other one) will take some time to get working, what do you need it for? You can write programs in MATLAB and the math is already built in. But if you need it to be in C++ then you should go with GiNaC. You'll have to connect to it as an unmanaged project of course, since it's in standard C++, not VC
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how i declare an array which contains email address corresponding to names. 2 60
Pre-Linear Regression Tests 2 41
printf performancy 11 83
CSV file copy field 1 to field 2 2 35
Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

685 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