Results for "Category: Math"
Returns the date of the week-ending day based on the input date. Useful for due-by dates, weekly accounts etc.
This example shows how to create a bouncing ball on your form, also let's you manipulate the kenetic loss and gravity settings. I found a simpler version of this online created in Java, it looked interesting so I converted it and improved on it. The formula still has a few bugs in it that you can read about in the project files, good source to learn how physics and C++ can interact, if you use improve this even more please pass along to others.
Quickly you can obtain your factorial number, and of course this code explain the theory you can optimize more and more this.
A simple console program that factors any quadratic trinomial in the form AX^2 + BX + C, A != 0 (I couldn't find one on PSC so I had to make my own, darn Algebra homework...) Source code and all VC++ files included, though will run on any compiler.
This program can generate words of all possible combinations of a string by jumbling up the characters. For expample, see the screen shot. Coded in Turbo C/C++.
A simple Calculator ; Well Commented easy to follow, for beginers. It also shows some basics of C++ programs. If you find this article helpful to you please send me a message.
Enter a number and the program will determine if it is prime. If the number is not prime the program will find the prime factors. For really big numbers it should only take a few seconds to process other than that it's lightning fast
MathDrawer was a project for my Visual C++ course. I was so excited about programming for Windows with this powerful language that I went far beyond what was required for the project. The end result is this: a rich featured plotting application that supports many trigonometric and other functions. It has three modes of operation: drag mode to let you set the scale of the graph by dragging the plot area, percision mode that will make the mouse pointer snap to the curve, and finally scroll mode which is like drag but scrolls automatically as you move the mouse. The application also lets you export the graph as BMP file. I'm sure there are other great graphing applications out there but this one demonstrates a lot of concepts in MFC and Windows programming. Vote if you like it, and don't forget to leave a comment or two.
Never use graph paper again! This little baby can graph any function you please! Once it has done that just print the thing out! Great for homework stuff. To change the funtion you want graphed, simply open up the ASP file in a text editor and change the function around. (As well as some other customizations.) Have fun!
This Visual Basic version was popular so I decided to upload the C++ version. This is my first C++ submission. Hope everyone likes it. This math library handles 2D Vectors, 3D Vectors, 4D Vectors, 3x3 Matrix, 4x4 Matrix, Color, and Quaternions. The 2D Vectors, 3D Vectors, 4D Vectors, and Color all have linear and hermit spline interpolation. Also, the vectors handle easy/advanced collision detection routines, advanced quaternion and matrix functions, and much more. This is 100% worked out math functions, no calls to DirectX or any other API's. (*Other than the normal Cos(), Sin(), Sqrt(), etc*) Not every functions has been tested yet, so if there are any problems please let me know. Enjoy this and learn! -James-
This utility shows how to convert numbers to different types (i.e. hex, decimal, binary, octal).
Enter a parabola in the form of y = ax^2 + bx + c. Then the program will graph the parabola and give you info about the parabola. Very simple and easy to follow code. Please comment and vote.
It gives you the area of the rectangle
It gives you the numerical value of kinetic energy. This thing is related to physics.
Finds the determinant of 3x3 matricies and solves systems of 3 equations with 3 variables.
It finds one the roots of a cubic equation using Cardano's formula.
This Calculator calculates the volume of a cone,Surface area of a cylinder and surface area of a cone. Please Rate the code. Thanks
Helping hand for the beginers! the .zip file contains these files Add.cs,Fabo.cs,Add.cs,Sort.cs,Greater.cs,Binary.cs,Reverse.cs,Prime.cs,Gcd.cs,BinSort.cs,Pascal.cs, Calendar.cs
Combinations of 3,4,5, and 6 letter word or number
Calculates your monthly payments on a mortgage loan. Also compares how much interest to principle you are paying each payment. Also sorry i had to do it twice i accidentally put exe file instead of .cpp!