Normal calculators doesn't have so much precision as compared to computers. If you see the result in decimal form with out scientific notation, the result is negligible small and close to 0. There fore calculators show this zero. You can use Math.Round for this problem. double y= Math.Round(sinRad* 90,5); ...

python,math,canvas,turtle-graphics,sine

y = 50*(math.sin(math.radians(x))) with x in the range from min to max will of course produce the corresponding graph, if (min,max)=(0,300) then from sin(0) to sin(300*pi/180). (x-min)/(max-min) will produce a variable in the range of 0 to 1 -1+2*(x-min)/(max-min) correspondingly a variable in the range from -1 to 1. So...

The calculation of the tangent basically looks ok. I don't quite understand the way you draw it, though. If (dx, dy) is your tangent vector, shouldn't your drawing code look like this? glVertex3f(position, SIN(1, 2, position), 1.f); glVertex3f(position + dx, SIN(1, 2, position) + dy, 1.f); In any case, with...

You are getting aliasing. Your sampling frequency needs to be much, much higher than that the maximum frequency you want to plot to get a "smooth" plot. With a 5 kHz sine wave, you need at a sampling frequency of at least 50 kHz, and even then that's not very...

Digging out my rusty math I think it may be because: Going in L steps from frequency F1 to F2 you have a frequency of Fi = F1 + i * ( F2 - F1 ) / L or with ( F2 - F1 ) / L = S Fi...

I think your problem is one of sampling - your sampling frequency is too low for the signal you are trying to represent. I suggest that you debug by explicitly computing freq = 7E8/(2*pi); t = 1 + linspace(0, 4E-7, 1001); multiplier = linspace(1,2,1001).^2; omega_t = 2*pi*freq*t.*multiplier; d_omega_t = diff(omega_t);...

signal-processing,microcontroller,sine,amplitude,adc

Assuming the input signal is a single sine wave (no noise or other frequency components), you generally need 3 samples to estimate the parameters, since you have 3 parameters - amplitude, frequency, and phase. If in addition you know the frequency exactly (as implied in your question), then 2 samples...