fixp_sin32_rad(9)
๐ธ NAME ๐ธ
fixp_sin32_rad โ calculates the sin of an angle in radians ๐ซ
Okay so this is the Kernel API Manual page for it, bestie โ welcome to the math corner ๐งฎโจ
โจ SYNOPSIS โจ
s32 fixp_sin32_rad (u32 radians , u32 twopi );
๐ ARGUMENTS ๐
radiansโ the angle, in radians ๐twopiโ the value to be used for2*pi๐
๐ DESCRIPTION ๐
So this function provides a variant for the cases where just 360 values is not enough. It uses linear interpolation to a wider range of values given by the twopi var โ lowkey iconic behavior, fr fr โจ
Experimental tests gave a maximum difference of 0.000038 between the value calculated by sin and the one produced by this function, when twopi is equal to 360000. That seems to be enough precision for practical purposes ๐๐
Please notice: two high numbers fortwopicould cause overflows, so the routine will not allow values oftwopibigger than1^18โ ๏ธ๐
Itโs giving โprecise enough but donโt push your luck,โ no cap ๐ซถ
๐ SEE ALSO ๐
- Kernel file
./include/linux/fixp-arith.h __fixp_sin32(9)fixp_sin32(9)fixp_linear_interpolate(9)
Byeee bestie ๐ โ source/version is ./include/linux, dated October 2026 ๐๐ฆ
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms