Module:ColinTheCat/Plotter/doc: Difference between revisions

From Resonite Wiki
No edit summary
No edit summary
Line 6: Line 6:
|To=2 * pi + 0.2, 1.2
|To=2 * pi + 0.2, 1.2
|GridStep=0.5 * pi, 1
|GridStep=0.5 * pi, 1
|LabelStepX=format("%.1f π", x/pi)
|LabelStepX=format("%", dfrac(x/pi, 1))
|Plots=
|Plots=
[
[
Line 24: Line 24:
|To=2 * pi + 0.2, 1.2
|To=2 * pi + 0.2, 1.2
|GridStep=0.5 * pi, 1
|GridStep=0.5 * pi, 1
|LabelStepX=format("%.1f π", x/pi)
|LabelStepX=format("%", dfrac(x/pi, 1))
|Plots=
|Plots=
[
[

Revision as of 20:54, 12 February 2024

Example

{{#invoke:ColinTheCat/Plotter|Plot2D
|From=-0.2, -1.2
|To=2 * pi + 0.2, 1.2
|GridStep=0.5 * pi, 1
|LabelStepX=format("%sπ", dfrac(x/pi, 1))
|Plots=
[
{"Type": "function", "Function": "sin(x)", "Samples": 100, "Label": "sin"},
{"Type": "function", "Function": "cos(x)", "Samples": 100, "Label": "cos"},
{"Type": "function", "Function": "tan(x)", "Samples": 35, "Label": "tan", "Ranges": [
  {"To": "(0.5-0.2)*pi"},
  {"From": "(0.5+0.2)*pi", "To": "(1.5-0.2)*pi"},
  {"From": "(1.5+0.2)*pi"}
]}
]
}}
½π π ³⁄₂π -1 1
sin
cos
tan