Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

C/++/# How to use C++ in studying calculus

  1. Apr 3, 2018 #1
    How to use C++ in studying calculus
    I'm having a hard time.
     
    Last edited by a moderator: Apr 6, 2018
  2. jcsd
  3. Apr 3, 2018 #2

    BvU

    User Avatar
    Science Advisor
    Homework Helper
    2017 Award

    I sympathize, but can't help with a sensible (and somewhat concrete) answer unless you provide some more context. What specifically makes it hard ? The calculus, the c++ language, anything else ... ?
    What have you done/seen/learnt so far ?
     
  4. Apr 3, 2018 #3

    anorlunda

    Staff: Mentor

    Why do you need any programming to learn calculus?
     
  5. Apr 3, 2018 #4

    BvU

    User Avatar
    Science Advisor
    Homework Helper
    2017 Award

    Maybe it's the other way around :smile:
     
  6. Apr 3, 2018 #5
    Program the ti-84 to learn calculus
     
  7. Apr 3, 2018 #6

    jedishrfu

    Staff: Mentor

    Rosetta Code has a numerical integration topic implemented in several languages for selected functions:

    https://rosettacode.org/wiki/Numerical_integration

    If you are instead trying to learn Calculus and want to use programming to verify your answers (not a good idea - as you'll be spinning your wheels and getting frustrated trying to understand why your answer isn't what the teacher gets exactly - and it wont help on tests or quizzes).

    You could consider using MATLAB (popular in college with engineers) or Mathematica:

    https://rosettacode.org/wiki/Numerical_integration#MATLAB_.2F_Octave

    https://rosettacode.org/wiki/Numerical_integration#Mathematica

    Other languages I forgot to mention are Julia (MAtlab like) and Python. Both of which have examples for numerical integration:

    https://rosettacode.org/wiki/Numerical_integration#Julia

    https://rosettacode.org/wiki/Numerical_integration#Python
     
    Last edited: Apr 3, 2018
  8. Apr 3, 2018 #7

    QuantumQuest

    User Avatar
    Science Advisor
    Gold Member

    While you can use C++ for any problem that is or can get computable, you will definitely need some good skills in C++ first. In the past when in college, I was using C extensively for computations in various fields of math. It was an excellent exercise for becoming a better programmer. You can also do this in C++ - provided that you use the available well written and tested libraries that exist, but it will be tricky enough when it comes to difficult concepts / computations. I would recommend to try to do your best - it will take time and efforts, but meanwhile, as pointed out by jedishrfu, you can use some numerical computing environment like Matlab or Mathematica - there is other such software as well, in order to learn the math concepts without inaccurate approximations or other errors.
     
  9. Apr 3, 2018 #8

    FactChecker

    User Avatar
    Science Advisor
    Gold Member
    2017 Award

    For simple experiments in calculous (changing parameters, seeing graphs of the functions, integrals, and derivatives), you might want to look at the free GeoGebra software package.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Loading...