Skip to content

Basically an application similar to Desmos that instead uses javascript for graph plotting allowing for the easy use of external libraries and more complex mathematical functions and concepts like recursion.

License

Notifications You must be signed in to change notification settings

RandomGamingDev/Chezmos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chezmos

Basically an application similar to Desmos that uses javascript for graph plotting allowing for the easy use of external libraries and more complex mathematical functions and concepts like recursion.

Because this graphing application uses javascript, it thus isn't limited by things like what math has been implemented into the graphing software nor things like immutable variables, but rather by the limits of your browser's javascript engine, which means that you have practically unlimited power which makes this software, although simpler than Desmos in nature, more powerful than Desmos in nature too. Whatever features you want you can simply implement or import libraries for and use to your heart's content.

Actions:
To start open up the application on your web browser. There you can use the + and - features to create new functions with each function being on a different row. With a column for the name, one for the color, and one for the javascript code containing the equation itself. To run simply press the run button, with any errors being printed out to the console right below the graph. If you want to resize the graph simply resize domain by declaring the low, high, and step of a range. The limit for the number of x values that can be in this domain is 10000. If you want to add libraries, for example math or display libraries you can simply use the add library button to add whatever libraries you want. Although, beware, due to how javascript works you can't just remove these libraries so any that you add are added to the instance until you refresh.

How to create a function:
When creating an equation you don't have to declare the function part. Simply type some normal javascript code and return the value that you want to be graphed. To call your own function for recursion simply call self(x) (although just as a reminder u can't recurse too many times). You could also use trueSelf(x) if you want, but self(x) is typically faster as it caches the return values so that they don't have to be recaculated which is 99% of the time what you want especially when calculating larger recursive graphs.

Function examples:

return Math.sin(x);

// and

if (x == 1)
  return 32;
return self(x - 1) + 8; 
// by the way when dealing with recursive functions make sure to not recurse too much
// for example if used with a domain that includes numbers that aren't whole numbers 
// and/or numbers that are below 1 this will infinitely recurse 
// which will bring up a recursion error so for example with this equation you might want to use for example, the domain 1-10 with step 1

Credit to Knectoparapolosis for the name. You can find his github here: https://github.com/Knectoparapolosis.

About

Basically an application similar to Desmos that instead uses javascript for graph plotting allowing for the easy use of external libraries and more complex mathematical functions and concepts like recursion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages