A computer program product comprising a non-transitory computer-readable storage medium that stores a graphing program for causing a graphing apparatus that includes a receiving module, an angle-determining unit, a plotting module, and an output module to execute steps of a graphing method including:
- (a) configuring the receiving module to receive a first value and a second value, and reference information corresponding to the first and second values;
- (b) configuring the angle-determining unit to determine an angle value using the first value and the second value, step (b) including
- (b-0) configuring a pre-processing module of the angle-determining unit to determine if the first value is zero,
- (b-1) if the first value is not zero, configuring a relational value module of the angle-determining unit to calculate a relational value by determining the quotient of a numerator and a denominator, in which the denominator is a function of the first value and the numerator is a function of at least the second value,
- (b-2) if the first value is not zero, configuring an angle transformation module of the angle-determining unit to obtain the angle value by inputting the relational value in a predetermined inverse trigonometric function, and
- (b-3) if the first value is zero, configuring the pre-processing module to determine the sign of the second value, the angle-determining unit being configured to set the angle value to a maximum value of the range of the inverse trigonometric function when the sign of the second value is positive, the angle-determining unit being configured to set the angle value to a minimum value of the range of the inverse trigonometric function when the sign of the second value is negative;
- and
- (c) configuring the plotting module to generate a graph having presented thereon a coordinate value formed using the angle value and the reference information;
- and
- (d) configuring the output module to output the graph to a display medium for display thereon.