A graphing tool for macOS allowing you to write equations as Swift code. This is a very early work in progress.
![Skjermbilde 2024-02-03 kl 11 16 18](https://private-user-images.githubusercontent.com/26850613/302029303-86b3f816-26d9-4727-91f8-ea313920af70.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5OTY0NDcsIm5iZiI6MTcxNzk5NjE0NywicGF0aCI6Ii8yNjg1MDYxMy8zMDIwMjkzMDMtODZiM2Y4MTYtMjZkOS00NzI3LTkxZjgtZWEzMTM5MjBhZjcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEwVDA1MDkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlYmMyODYzNDgyZDM4MGE4YjliNDA4MDFjZjljNzhkOTUwMGI2YTUyNDVkNmMyOTY1YjVhNGYyMGIzNzNmODUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uYcHIckx6h2Trk95PgTM8erEuxA3oHdOT_PIqdiz054)
NOTE: Requires Swift to be installed at /usr/bin/.
Works by compiling your code with swiftc
to a dylib, and then linking at runtime.
- Zooming in the graph view
- Syntax highlighting
- Support multiple equations
- Display compiler errors
- Automatic compilation
- Hiding function attributes such as
@_cdecl
andpublic
- Support computational commands like Intersect, Maxima, Minima, …
- Support other kinds of curves, like: parametric, radial, complex plane
- Support 3D graphs
- Separate version which embeds the Swift compiler
Contributions are welcome and encouraged. Feel free to check out the project, submit issues and code patches.