How to use C++ in studying calculus

Click For Summary

Discussion Overview

The discussion revolves around the use of C++ in studying calculus, exploring the challenges faced by learners and the potential benefits of programming in understanding mathematical concepts. Participants share various perspectives on the necessity and practicality of integrating programming with calculus learning.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation

Main Points Raised

  • One participant expresses difficulty in using C++ for studying calculus and seeks guidance on specific challenges.
  • Another participant questions the necessity of programming for learning calculus, suggesting it may not be essential.
  • A suggestion is made to program a TI-84 calculator as a means to aid in learning calculus.
  • Resources from Rosetta Code are provided, highlighting numerical integration implementations in various programming languages, including C++, MATLAB, Mathematica, Julia, and Python.
  • One participant reflects on their experience using C for mathematical computations, noting the importance of having good programming skills and the potential challenges when dealing with complex concepts in C++.
  • A recommendation is made to use GeoGebra for simple experiments in calculus, such as visualizing functions, integrals, and derivatives.

Areas of Agreement / Disagreement

Participants exhibit differing views on the necessity and effectiveness of using programming, particularly C++, in learning calculus. There is no consensus on whether programming is beneficial or essential for understanding calculus concepts.

Contextual Notes

Some participants highlight the potential frustration of using programming to verify calculus answers, suggesting that it may not align with traditional learning methods or assessments.

sherlin
Messages
1
Reaction score
0
How to use C++ in studying calculus
I'm having a hard time.
 
Last edited by a moderator:
Technology news on Phys.org
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 ?
 
Why do you need any programming to learn calculus?
 
  • Like
Likes   Reactions: FactChecker
Maybe it's the other way around :smile:
 
Program the ti-84 to learn calculus
 
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 won't 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:
  • Like
Likes   Reactions: QuantumQuest
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.
 
  • Like
Likes   Reactions: jedishrfu
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.
 
  • Like
Likes   Reactions: QuantumQuest and jedishrfu

Similar threads

  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 1 ·
Replies
1
Views
693
  • · Replies 64 ·
3
Replies
64
Views
8K
  • · Replies 15 ·
Replies
15
Views
8K
  • · Replies 22 ·
Replies
22
Views
3K
Replies
69
Views
11K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K