Tag: matlab

Why do trigonometric functions give a seemingly incorrect result?
12 When attempting to use a trigonometric function in my programming language, I get a seemingly wildly incorrect result. For example, sin(90) = 0.8939966636005579 But I would expect sin(90) to be 1. What is going on and what can I do to fix this? languageagnostic trigonometry Share Follow edited 1 hour ago Bergi 638k149149 gold…

Why is R’s hamming function different from Matlab’s?
8 Why does the hamming function in R give different values to the function of the same name in Matlab? Matlab: hamming(76) 0.0800 0.0816 0.0864 0.0945 0.1056 0.1198 R: library(gsignal) hamming (76) 0.08695652 0.08851577 0.09318288 0.10092597 0.11169213 0.1254078 r function matlab signalprocessing Share Improve this question Follow edited 39 mins ago Jacob 1,59888 silver badges2525…