{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Pre-Calc Exam Notes 157

# Pre-Calc Exam Notes 157 - The result is shown...

This preview shows page 1. Sign up to view the full content.

Appendix B: Graphing with Gnuplot 157 Symbol Operation Example Result + Addition 2 + 3 5 Subtraction 3 2 1 * Multiplication 2*3 6 / Division 4/2 2 ** Power 2**3 2 3 = 8 exp( x ) e x exp(2) e 2 log( x ) ln x log(2) ln2 sin( x ) sin x sin(pi/2) 1 cos( x ) cos x cos(pi) 1 tan( x ) tan x tan(pi/4) 1 Note that we use the special keyword “pi” to denote the value of π . ExampleB.1. To graph the function y = sin x from x = 0 to x = 2 π , type this at the gnuplot> prompt: plot [0:2*pi] sin(x)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The result is shown below:-1-0.8-0.6-0.4-0.2 0.2 0.4 0.6 0.8 1 1 2 3 4 5 6 sin( x ) Notice that the x-axis is labeled with integers. To get the x-axis labels with fractions of π , you need to modify the terminal setting. In Windows, you would do this: set terminal windows enhanced...
View Full Document

{[ snackBarMessage ]}