Any free Unity compatible math computer algebraic system (CAS)?

I am looking for a CAS, which is free and is compatible with
Unity and webGL. I’ve looked into mathjs for webgl, and I found it to be slow when making my graphing calculator. I am wondering what other options are compatible with webGL. I’ve heard of Maxima being used on a calculator site, I didn’t figure out how to make it work with my own version, but it must run locally and shouldn’t have to send a webrequest to the server for every calculator.

I also tried coding out my own. This is a fairly difficult project IMO, and I think I’m going to give up. The expression evaluator and differentiator are easy to figure out, but the simplification and re-ordering of the expression is fairly challenging, I don’t know what else beyond this I want a calculator for yet, but a CAS that come with all these functions sure would be nice to have.