Experiment freely.

Run TypeScript-flavored math snippets in your browser. The Sage runtime is preloaded, so you can focus on the ideas.

Runtime: loading...
Editor
TypeScript-flavored JS. BigInt uses the n suffix.
Sage in scope
Output
Console output captured here.
Idle

      
Examples
Pick a quick demo to load into the editor.
Note: sagemath-ts is bundled for the browser and exposed as Sage, so examples run without imports.