Implementing math concepts on a web page

I was commissioned to create an online (client) implementation of the statistical method. The method is relatively easily programmed in R / SPLUS, for example, but I understand that this is done on the web page and on the client side. Ultimately, I will have to program some statistical concepts, which is good. However, I am looking for advice on what is the most practical language designed to solve the following problem on a web page:

  • Accepting user input

  • Accepting this input and performing various mathematically important high-level mathematical calculations (such as matrix algebra)

  • Return output to user

With my very limited knowledge, the Java applet seems to be the most obvious option. However, my question is, are there other ways to achieve this without an applet (i.e. javascript is enough) and what would be your advice in the most reliable / user friendly / suitable language for this? The main goal is access to the widest audience.

+4
source share
2 answers

I would recommend learning JavaScript first, as it is supported in all major browsers and does not require the installation of additional plugins, so it seems to be the perfect candidate for your "maximum possible audience" requirement.

In terms of supporting high-level math, you will most likely want to find a good library to use. I don’t know all your needs, but a simple search for the "Matrix Algebra" JavaScript library came up with this as the first result that looks promising,

If you do not find a library that meets all your needs, you can build mathematical functions that you will need yourself. This may sound like a hunch, but keep in mind that all higher-level functions are built on the basis of lower-level functions, and since JavaScript is a functional language, it is well suited to create this type of functionality. However, I do not know your programming knowledge, level of commitment to the project, or the complexity of the functions that you will need. Thus, if this proves a cumbersome task, and Java handles everything you need, then the applet is a good second option.

+1
source

The java applet is probably the easiest way to do this. javascript will provide you with a wider audience.

0
source

Source: https://habr.com/ru/post/1440144/


All Articles