Code Monkey home page Code Monkey logo

solver81's Introduction

Solver81 - Simple Linear Equation Solver for TI-81 Calculator

About

I wrote this nugget my freshman year of high school to get out of doing verify solutions on my Algebra homework ;). It lives over at ticalc.org but also wanted to immortalize it here in my github repo as well. It was fun to stumble on this blast from the past and its probably one of the very first programs I ever wrote. Its not unit-tested, so proceed with caution :P

The Algorithm

Linear regression is a popular method used in statistics and machine learning for modeling the relationship between a dependent variable and one or more independent variables. In the case of a simple linear equation, where there is only one independent variable, linear regression can be used to find the best fit line for the data and thus solve the equation. The TI-81 Solver allows you to input your relations in the Y1 and Y2 functions. It then uses set points to compute the analyical solutions following the line of best-fits method:

  1. Compute values for the independent variable (X) and dependent variable (Y).
  2. Calculate the means of X and Y.
  3. Calculate the variance of X and the covariance of X and Y.
  4. Calculate the slope of the line (m) using the formula: m = covariance(X,Y) / variance(X).
  5. Calculate the intercept of the line (b) using the formula: b = mean(Y) - m * mean(X).
  6. Use the equation of the line (y = mx + b) to solve for the dependent variable given a value of the independent variable.

solver81's People

Contributors

mjamesharmon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.