• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

Visual C++ maths

Hi Experts,
                        How to apply differentiation using VC++ is there any direct function for this.

Regards,
Vimal
0
vimalalex
Asked:
vimalalex
  • 4
  • 3
  • 3
  • +1
2 Solutions
 
phoffricCommented:
Sorry, there is no differentiation built-in function in the C++ Standard Library.
0
 
phoffricCommented:
Here is what is available in Math:
   http://www.cplusplus.com/reference/clibrary/cmath/
0
 
TommySzalapskiCommented:
You could try one of these libraries.
http://www.mathtools.net/C_C__/Calculus/index.html 
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
vimalalexAuthor Commented:
Hi All,

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

Regards,
Vimal.
0
 
phoffricCommented:
I found this one:
   http://sourceforge.net/projects/calculus/

But this one has more recommendations:
   http://sourceforge.net/projects/gattmath/
0
 
phoffricCommented:
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
 
thehagmanCommented:
What is your exact question? Do you want *formal* or *numerical* derivatives?
0
 
vimalalexAuthor Commented:
HI thehagman,
           
                 I am looking for a good library in windows C++ for applying in differentiation based  problems.

Regards,
Vimal
0
 
TommySzalapskiCommented:
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
 
vimalalexAuthor Commented:
Hi TommySzalapski,

                 I need C++ library.
Regards,
Vimal
0
 
TommySzalapskiCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now