Skip to content

tanakandove/Function_Plotting_Program

Repository files navigation

What is the title of your project?

Mini Graphing Calculator.

In 3-5 sentences, summarize what you want to accomplish.

Provides a user menu with four kinds of graphs: y = asin(bx)+c, y = atan(bx)+c, y = acos(bx)+c, and y = ax+b. Based on the user's choice, ask for the variables: a, b, c. The user can select up to 4 graphs. Ask user again for the next input until the user enters a blank input or reaches 4 grahps. Plot the graphs selected by the user in different colors on a single graph/axis.

In a numbered list, briefly describe your intermediate goal(s).

  1. Look into python module/s I can use for graphing. How do I plot different graphs on the same axis? Also look into appropiate scale and size of the axis.
  2. What is the best way to get input from the user and validates the values? How to catch different value error since I'm getting a lot of values from the user?
  3. Best menu design that does not confuse the user.
  4. Look into data structures combinations to store values a, b, c of the different graphs selected by the user.

Which goal(s) were you able to acheieve?

  1. I'm using matplotlib, numpy and math modules to plot the graphs. I managed to plot the different grahps on the same axis with different colors.
  2. I'm using input function to get values from the user. User will be asked to enter the numbers and if one enters characters or punctuation characters, the program will exit.
  3. I used a menu similar to the one we used in one of the labs in class. The user can select up to 4 graphs, but if they want to plot graphs less than 4, they input an empty string after selecting the options of graphs they want to plot.
  4. I'm using a nested list to store values from the user, values for plotting the graphs. The list starts as an empty list then builds a nested list as the user selects graphs to plot and enters the values for plotting the graphs.

About

Math Functions: linear, cosine, sine, tangent plotting calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages