⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_trig.m

📁 JAVA 数学程序库 提供常规的数值计算程序包
💻 M
字号:
function t=test_trig(x)
	//test trigonometric functions
	disp("No of arguments = " + nargin);

	disp("sin(" + x + ")  = " + sin(x));

	disp("cos(" + x + ")  = " + cos(x));

	disp("tan(" + x + ")  = " + tan(x));

	disp("");

	disp("arc sin(sin(" + x + "))  = " + asin(sin(x)));

	disp("arc cos(cos(" + x + "))  = " + acos(cos(x)));

	disp("arc tan(tan(" + x + "))  = " + atan(tan(x)));

	//disp("sin(" + x + ")  / cos(" + x + ")  = " + (sin(x)/cos(x)));

    	t=1;

/*
@GROUP
test
@SYNTAX
TEST_TRIG(value)
@DOC
A function to test the trigonometric functions.
@NOTES
@EXAMPLES
TEST_TRIG(2)
@SEE
*/
    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -