{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ ], "source": [ "%matplotlib inline\n", "import ipywidgets as widgets\n", "from ipywidgets import interact,interactive,fixed\n", "from IPython.display import display,Math,clear_output\n", "#import test \n", "#import sympy\n", "import src.lagrange as lg\n", "import src.leastSquares as ls\n", "import src.splines as sp\n", "import matplotlib.pyplot as plt\n", "from numpy import linspace,sin,shape\n", "from pandas import DataFrame\n", "from IPython.display import HTML\n", "#l=lg.Lagrange()\n", "#l1=ls.LeastSquares()\n", "#l2=sp.SplineParab()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "\n", "
" ] }, "execution_count": 2, "metadata": { }, "output_type": "execute_result" } ], "source": [ "HTML('''\n", "''') " ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "## Newton's divided differences interpolation polynomial and socket multiplication algorithms" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "\n", " | $f(x_{i})$ | \n", "$f(x_{i};x_{j})$ | \n", "... | \n", "... | \n", "$f(x_{i};...;x_{j})$ | \n", "
---|---|---|---|---|---|
-1 | \n", "-0.841471 | \n", "0.540302 | \n", "0.150584 | \n", "-0.150584 | \n", "0.248014 | \n", "
-1 | \n", "-0.841471 | \n", "0.841471 | \n", "-0.150584 | \n", "0.345443 | \n", "NaN | \n", "
1 | \n", "0.841471 | \n", "0.540302 | \n", "0.540302 | \n", "NaN | \n", "NaN | \n", "
1 | \n", "0.841471 | \n", "0.540302 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "0.841471 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "