1. Math Commands
  2. Graph

Math Commands

Graph

Documentation for the graph command.

Description

The graph command is used to graph a mathematical function (where x is the input).

Command Variations

The calculate command can be used either as slash ( /graph ) or text ( j!graph ) command.

Not all arguments are available when using the command as text command.

NOTE

If you use a different prefix than the default j! prefix, then you should use that prefix.

Usages

        graph <function>

      

Examples

        graph x+2
graph x^2
graph sin(x)
graph sin(x) + cos(x)
graph x^2 + 2x + 1
graph x!

      

Restraints

Your function must not be shorter than 1 character.

Your function must not be longer than 1000 characters.

Your function must not take too long to calculate.

Your function must not contain weird characters.

Your function must be a valid mathematical function.

Your graph settings must have a valid range of y values (between -100000000000000 and 100000000000000) if you are not using the default settings.

Your graph settings must have a valid range of x values (between -1000000 and 1000000) if you are not using the default settings.

You can for example draw the graph of x^2.

Arguments

Argument Type Description Required Default Available In Text Command
function String The function to draw the graph of. Yes N/A Yes
x-min Number The x range start point. No -10 No
x-max Number The x range end point. No 10 No
y-min Number The y lower limit. No -1000000 No
y-max Number The y upper limit. No 1000000 No

Aliases

  • none