MCPcopy Create free account
hub / github.com/crownengine/crown / math_cos

Function math_cos

3rdparty/lua/src/lmathlib.c:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static int math_cos (lua_State *L) {
42 lua_pushnumber(L, cos(luaL_checknumber(L, 1)));
43 return 1;
44}
45
46static int math_cosh (lua_State *L) {
47 lua_pushnumber(L, cosh(luaL_checknumber(L, 1)));

Callers

nothing calls this directly

Calls 3

cosFunction · 0.85
lua_pushnumberFunction · 0.70
luaL_checknumberFunction · 0.70

Tested by

no test coverage detected