Problems
Function tabulation
Function tabulation
Write a program that prints the values of a function y = 3 · sin(x) on segment from a to b inclusively with step h.
Input
Three double values a, b and h are given in one line.
Output
Print in each line two numbers x and y, ascending x with three decimal digits.
Input example #1
1 2 0.5
Output example #1
1.000 2.524 1.500 2.992 2.000 2.728