从图像求解函数的定义域与值域

从图像求解函数的定义域与值域
几何画板及绘图内容加载中,请稍等……
2012-05-30 07:48
本范例演示如何根据函数图像确定其定义域和值域,并使用区间表示法进行规范书写。通过动态交互,用户可以直观地观察函数图像在x轴和y轴上的投影范围,从而准确找出自变量和因变量的取值区间。适合高中代数及微积分预备课程的学习者,帮助巩固函数基本概念与图像分析能力。

GeoGebra 命令及参数

  1. Append(Sort[{Random[-4.0, -1.0], Random[-3.0, 1.0]}], Random[0.0, 1.0]) → sp1_{tmp}
  2. Append(sp1_{tmp}, If[Element[sp1_{tmp}, 1.0] ≟ Element[sp1_{tmp}, 2.0] ∧ Element[sp1_{tmp}, 3.0] ≟ 1.0, 0.0, Random[0.0, 1.0]]) → split
  3. Element(poss_m, Random[1.0, Length[poss_m]]) → m
  4. Append(Sort[{Random[Element[split, 2.0] + 3.0, Min[Element[split, 2.0] + 5.0, 4.0]], Random[Element[split, 2.0] + 3.0, Min[Element[split, 2.0] + 5.0, 4.0]]}], Random[0.0, 1.0]) → sp2_{tmp}
  5. Append(sp2_{tmp}, If[Element[sp2_{tmp}, 1.0] ≟ Element[sp2_{tmp}, 2.0] ∧ Element[sp2_{tmp}, 3.0] ≟ 1.0, 0.0, Random[0.0, 1.0]]) → split2
  6. If(Element[split, 3.0] ≟ 0.0, If[x ≥ Element[end, 1.0] ∧ x < Element[split, 1.0], part_1(x), If[Element[split, 4.0] ≟ 0.0, If[Element[split2, 3.0] ≟ 0.0, If[x > Element[split, 2.0] ∧ x < Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]], If[x > Element[split, 2.0] ∧ x ≤ Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]]], If[Element[split2, 3.0] ≟ 0.0, If[x ≥ Element[split, 2.0] ∧ x < Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]], If[x ≥ Element[split, 2.0] ∧ x ≤ Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]]]]], If[x ≥ Element[end, 1.0] ∧ x ≤ Element[split, 1.0], part_1(x), If[Element[split, 4.0] ≟ 0.0, If[Element[split2, 3.0] ≟ 0.0, If[x > Element[split, 2.0] ∧ x < Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]], If[x > Element[split, 2.0] ∧ x ≤ Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]]], If[Element[split2, 3.0] ≟ 0.0, If[x ≥ Element[split, 2.0] ∧ x < Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]], If[x ≥ Element[split, 2.0] ∧ x ≤ Element[split2, 1.0], part_2(x), If[Element[split2, 4.0] ≟ 0.0, If[x > Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)], If[x ≥ Element[split2, 2.0] ∧ x < Element[end, 2.0], part_3(x)]]]]]]) → f
  7. OrthogonalLine(A, yAxis) → a
  8. Intersect(a, yAxis) → R
  9. Segment(A, R) → line_r
  10. OrthogonalLine(A, xAxis) → b
  11. Intersect(b, xAxis) → D
  12. Segment(A, D) → linr_d
  13. Sort(Sequence[(Element[LB, i], i), i, 1.0, 3.0]) → LB_s
  14. Sequence(If[y(Element[LB_s, i]) ≟ 1.0, {Element[LB, 1.0], Element[Pts_L, 1.0], Element[UB, 1.0], Element[Pts_U, 1.0]}, If[y(Element[LB_s, i]) ≟ 2.0, {Element[LB, 2.0], Element[Pts_L, 2.0], Element[UB, 2.0], Element[Pts_U, 2.0]}, {Element[LB, 3.0], Element[Pts_L, 3.0], Element[UB, 3.0], Element[Pts_U, 3.0]}]], i, 1.0, 3.0) → int

AI 绘图提示语参考

请绘制一个函数图形,图形上标有定义域和值域的区间表示。图形应清晰展示函数在x轴和y轴上的投影,定义域为水平范围,值域为垂直范围。构造顺序:先绘制函数图形,然后标注定义域和值域区间,最后展示分段函数的变化,使学习者能够直观理解函数与图形的关系。
以上提示语为根据原始绘图命令整理而来,仅供参考。