在lua语言中怎么用sin,直接调用提示“attempt to call global 'sin' ”

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/21 18:34:37
在lua语言中怎么用sin,直接调用提示“attempttocallglobal''sin''”在lua语言中怎么用sin,直接调用提示“attempttocallglobal''sin''”在lua语言中怎

在lua语言中怎么用sin,直接调用提示“attempt to call global 'sin' ”
在lua语言中怎么用sin,直接调用提示“attempt to call global 'sin' ”

在lua语言中怎么用sin,直接调用提示“attempt to call global 'sin' ”
math.sin(x),x为弧度
math.sin(math.rad(x)) x为角度