test_quadg.m
来自「工具箱 (数值积分工具箱) matlab 中使用」· M 代码 · 共 30 行
M
30 行
f=quad('sin',0,pi), correct_ans=2f=quad8('sin',0,pi), correct_ans=2f=quadg('sin',0,pi), correct_ans=2f=quadg('sin',0,pi,1e-13), correct_ans=2 % with tighter tolerencef=quadg('fxpow',0,2,[],[],1), correct_ans=2f=quadg('fxpow',0,2,[],[],2), correct_ans=8/3zero_count;f=quad('fxpow',0,2,[],[],3), correct_ans=4num_functs_in_quad =zero_countf=quad8('fxpow',0,2,[],[],3), correct_ans=4num_functs_in_quad8 =zero_countf=quadg('fxpow',0,2,[],[],3), correct_ans=4num_functs_in_quadq =zero_countdisp('quadg has lowest number of function calls')f=quad('fxpow',0,2,[],[],4), correct_ans=32/5f=quad8('fxpow',0,2,[],[],4), correct_ans=32/5f=quadg('fxpow',0,2,[],[],4), correct_ans=32/5f=quadg('fxpow',0,2,[],[],5), correct_ans=32/3f=quadg('fxpow',0,2,[],[],6), correct_ans=128/7f=quadg('fxpow',0,2,[],[],7),correct_ans=32f=quadg('fxpow',0,2,[],[],8),correct_ans=512/9f=quadg('fxpow',0,2,[],[],9),correct_ans=512/5f=quad8('fxpow',0,2,[],[],10),correct_ans=2048/11f=quadg('fxpow',0,2,[],[],10),correct_ans=2048/11
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?