Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math Scripting like SpeQ? #21

Open
mofosyne opened this issue Mar 8, 2023 · 0 comments
Open

Math Scripting like SpeQ? #21

mofosyne opened this issue Mar 8, 2023 · 0 comments

Comments

@mofosyne
Copy link

mofosyne commented Mar 8, 2023

Can't find anything like SpeQ on linux https://speqmath.com

Very handy to refresh the whole page and have all the numbers update (like in a spreadsheet) but in linear text form, but where the results is also selectable.

Maybe the syntax is by detecting any := and using that as an indicator that the user is expecting an updated answer

4.5 / 3^2 := 0.5
Fraction(2/3 + 5/4 - 1/2) := 17/12
2 * Sin(0.25*Pi) := 1.414213562
myvar = 3.25/2 := 1.625
myvar^2 := 2.64

Ref: In SpeQ any line that doesn't have a ; is assumed to want a Ans = line under

4.5 / 3^2
	Ans = 0.5
Fraction(2/3 + 5/4 - 1/2)
	Ans = 17/12
2 * Sin(0.25*Pi)
	Ans = 1.414213562
myvar = 3.25/2
	myvar = 1.625
myvar^2
	Ans = 2.64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant