Skip to content

booleanull/FoxramAlpha-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoxramAlpha-Backend

Computer algebra system

What was used in the project?

  1. Kotlin
  2. Spark
  3. Dagger2
  4. Gson
  5. JUnit

What is FoxramAlpha?

FoxramAlpha is a computer algebra system that allows calculations with large numbers. A complete list of service features can be found at the link. A distinctive feature of FoxramAlpha is the work with polynomials and work with them in algorithms of discrete mathematics.

API

Get form

Returns form to fill in

  • URL
    .../api/form
  • Method
    POST
  • Example request
{
  "type": "P-8"
}
  • Example success response
{
  "form": {
    "type": "P-8",
    "number1": true,
    "number2": true,
    "number3": false,
    "digit": false,
    "title": "Умножение многочленов",
    "description": "Примеры ввода многочленов: [x^2 + x - 1]"
  },
  "status": "ok"
}
  • Example wrong response
{
  "status": "error",
  "error": "Bad Request!"
}

Get solution

Returns solution

  • URL
    .../api/solution
  • Method
    POST
  • Example request
{
	"type": "P-8",
	"number1": "x^3 + 2x^2 + 3x + 2",
	"number2": "x^2 + 2x + 1"
}
  • Example success response
{
  "result": "x^{5} + 4x^{4} + 8x^{3} + 10x^{2} + 7x + 2",
  "status": "ok"
}

Warning: Result is returned in LATEX format.

  • Example wrong response
{
  "status": "error",
  "error": "Bad Request!"
}

License

MIT

MIT License

Copyright (c) 2019 Vitaliy Zub

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Computer algebra system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages