Making a Math computer program

  • Context: High School 
  • Thread starter Thread starter Raza
  • Start date Start date
  • Tags Tags
    Computer Program
Click For Summary
SUMMARY

The discussion focuses on developing a math computer program that incorporates various mathematical formulas and algorithms. Key features mentioned include cross-multiplication, average calculations, tax computations, the quadratic formula, polynomial derivation, integration, and solving simple equations. The user emphasizes the importance of writing custom algorithms instead of relying on pre-defined functions to enhance understanding of mathematics. A notable example provided is a program that calculates prime divisors and checks for perfect numbers, which significantly aided the user's number theory studies.

PREREQUISITES
  • Understanding of basic mathematical concepts such as polynomials and prime numbers
  • Familiarity with programming in Visual Basic (VB)
  • Knowledge of algorithms for mathematical computations
  • Experience with mathematical formulas and their applications
NEXT STEPS
  • Research algorithms for polynomial integration and derivation
  • Explore methods for calculating prime factorization in programming
  • Learn about perfect numbers and their properties in number theory
  • Investigate the implementation of custom mathematical functions in Visual Basic
USEFUL FOR

This discussion is beneficial for aspiring programmers, mathematics enthusiasts, and students in number theory who are looking to enhance their understanding of mathematical algorithms and programming techniques.

Raza
Messages
203
Reaction score
0
Hi,
I just some ideas for what should I put in my math program. All I need is some forumlas.So far I got the cross-multiply,average and the taxes.
program.jpg

I'll remove the fat ronald afterwards. When I am going to be done, I can post it my program for download.
 
Mathematics news on Phys.org
Quadratic formula

Some hard ones:
Derive (polynomials only would be easy)
Integrate (polynomials only would be easy)
Solve simple equation (5x + 3 = 2, solve for x!)
 
Although there are professional programs that do this I would very much suggest you try and think of as much stuff you can do and add it in. It very much gives you a better understanding of that area of mathematics (try and write most of your algorithms rather than using pre-defined functions).

A good one that I wrote a couple of years back was a program which when you inputted a number it gave you it's prime divisors, e.g if I inputted 12 it would give you:

2^2 x 3

I expanded the program to give the sum of divisors, e.g if you inputted 6 it would be the same as:

1+2+3 = 6

And thus also told you if it was a perfect number of a near perfect number (only 1 number away). I carried on looking for more things, like telling you if it was a Fermat prime number etc.. etc.. I think the program could finally deal with any number 10^8 or less and still be quite quick (it was written in VB). Not only did it give me a better understanding the maths but it has allowed me to breeze through my number theory course.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 7 ·
Replies
7
Views
9K
  • · Replies 11 ·
Replies
11
Views
2K