画函数在定义域内的图像,不要全部的图像

法一:
f(x)=If[x<=3&&x>=1,x^2]
可以作出x的平方在1到3范围内的图像
法二:
Function[x^2,1,3]
等价于法一

摘自https://tieba.baidu.com/p/4911584044

posted @ 2021-09-09 12:30  奋斗者_1  阅读(178)  评论(0编辑  收藏  举报