/Interpol

TUI programs to calculate the polynomial interpolation in multiple different programming languages

Primary LanguageJava

Interpol (Interpolation of Polynomials)

I made this repository as a "playground" for testing various programming languag es that i used, want to use, and are interested in. I will try my best to adher e to each conventional programming language syntax to prevent code replication b etween languages, while providing a somewhat similar function for each different programming languages. I've also provided some test cases available in the folde r Test.

I've only tested these code in my local machine running Arch Linux. The input fi le must be on the following format

n
x1 y1
x2 y2
x3 y3
...
xn yn
xn+1 yn+1

Where n denotes the highest degree and the pair (xi, yi) denotes the point p assed by the function. The input must have at minimum n + 1 number of points.

Requirements and setup for each languages are available in the corresponding dir ectories.

Programming Languages

Language Progress
Ada
ARM Assembly
Assembly x86
Assembly x64
B
Bash
C Done
Clojure
Cobol
Crystal
C++
C#
D
Dart
Elixir
Elm
Erlang
Flow
Fortran
F#
Gambas
Gleam
Go Done
Groovy
Haskell
Haxe
Java Done
Javascript
Julia
Kotlin
Lisp
Lua
Matlab
Nim
OCaml
Octave
Objective-C
Perl
PHP
Purescript
Prolog
Python 2 Done
Python 3 Done
R Done
Racket
Ruby
Rust
Sagemath Done
Scala
Sieve
Solidity
SPARK
SQL
Swift
Typescript Done
V
Vala
Vimscript
Zig

Acknowledgements

  • This project was inspired by one of the questions from the Distributed Systems Laboratory Assistant Selection
  • Many thanks to yveschris for providing the vandermonde matrix inverse algorithm
  • README template by @flynerdplREADME