Hi Doris,

I believe some parts of Sage can be used in WASM (via pyodide) but
others cannot so I am not sure if it is possible to get the
functionality that you want from Sage in WASM.

It is however possible to use SymPy in WASM (via pyodide) as
demonstrated here using JupyterLite:
https://live.sympy.org/

You should be able to test the following commands in SymPy Live which
I assume is the functionality that you are looking for:

factor(x**2 + 1, domain=QQ)
factor(x**2 + 1, domain=ZZ_I)
factor(x**2 + 1, domain=GF(2))

--
Oscar

On Tue, 30 Apr 2024 at 08:29, 'Doris Behrendt' via sage-devel
<sage-devel@googlegroups.com> wrote:
>
> Hi all,
>
> My team is about to develop a webapp where we want to factor polynomials with 
> coefficients in ZZ.
> We want to offer a dropdown menu where the user can select the base ring and 
> then the factorisation changes interactively. We use React and JavaScript and 
> also Web Assembly, e.g. for our Web-OpenSSL here: 
> https://www.cryptool.org/en/cto/openssl/
>
> Sage offers the command change_ring, we did not find a JavaScript Library 
> that has this functionality. So I thought, perhaps we could look for 
> solutions where Sage is used together with web assembly.
>
> After some research I have the impression that there are some proofs of 
> concept, but there is nothing actively developed?
>
> Since I am not a programmer and nobody in my team is a mathematician (so my 
> developers don't know Sage), I kindly ask on this list for any hints how we 
> could proceed?
>
> Thanks in advance
> Doris
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/08830539-4D13-4E63-80E0-4F1F788B1657%40me.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAHVvXxTCFwv9JhQzcz-KzvZA%3Dx%3D%3DbYj%3DkonhcMBi7%2BWm%3DJ8%3D0w%40mail.gmail.com.

Reply via email to