Engineering >> Computer Science & Engineering

Vector Calculator

by Joseph Frye


Submitted : Spring 2012

The C programming language offers a library of math functions located in the math.h header. However vector calculations are not contained within this library. During this project I hope to create my own library of vector functions which I will call the vector.h header. I will include functions to form vectors from points, multiply vectors by scalars, calculate the norm of vectors, unit vectors, dot product, angle between vectors, cross product, angle of the orthogonal vector, scalar and vector production of V1 on V2, and to find the triple cross product(parallelepiped volume). As the equations get more complicated they will start to call from functions that have already been declared. I created the functions so that I will be able to use the functions in different programs as long as I include calculate.h .

After creating all these functions I will make a program that will be able to ask the user to pick between all these functions. It will then ask the user to input the proper points and/or vectors and call from the library of functions to perform the requested calculations. After performing the calculations the calculator will return the answer accurate to two decimals.



[ Back ]

Advisors :
Brian Curtin, Mathematics and Statistics
Scott Campbell, Chemical & Biomedical Engineering
Suggested By :
Scott Campbell