APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Data Fitting JS Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Data Fitting JS Model 

written by Francisco Esquembre

The Data Fitting JS Model uses a least square fitting algorithm to fit a polynomial curve to a data set. Users can add points  by clicking within the plotting panel.  This model is designed to show how to use the numeric JavaScript library that is distributed with EjsS.

The Data Fitting JS Model was developed using the Easy Java/JavaScript Simulations (EjsS) version 5.  Although EjsS is a Java program, it can create stand alone JavaScript programs that run in almost any PC or tablet.

Published January 21, 2014
Last Modified June 14, 2016

This file has previous versions.

Source Code Documents

Data Fitting JS Source Code 

This source code zip archive contains an XML representation of the Data Fitting JS Model.   Unzip this archive in your Ejs workspace to compile and run this model using EJS 5.  Although EJS is a Java program, EJS 5 creates a stand alone JavaScript program from this source code.

Last Modified October 21, 2014

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book