Git Product home page Git Product logo

matlab's Introduction

CALCULUS USING MATLAB

A bunch of MATLAB code files used for solving common calculus problems.


Area under curve

Calculates the area between two curves and plots it in a graph.

Input

  • function of the upper curve in terms of x
  • function of the lower curve in terms of x

Output

  • Area between the curves
  • Graph representing the curves

Tangent of curve at origin.

Finds the equation of the tangent of a curve at the origin (0,0).

Input

  • function of the curve in terms of x
  • function of the curve in terms of x (extra input)

Output

  • Equation of the tangents in functions of x
  • Graph representing the curves and the tangents
Note: The code can be modified to get tangents at any point.

Local maxima/minima of one vvariable functions

Finds the points where the functions is minimum or maximum and and evaluates the function's value

Input

  • function of the curve in terms of x

Output

  • Displays if the critical points is a maxima or minima
  • Displays the value of the maxima or minima
  • Displays the point where maxima or minima occurs (value of x and y)
  • Graph of the curve and its extrema

Maxima/minima of two variable functions

Finds the maxima and minima of functions of two variables (surface)

Input

  • function of two variables (equation of surface) in terms of x and y

Output

  • Displays if the critical points where the function is a maxima or minima (x,y)
  • Displays the value of the maxima or minima
  • Graph of the surface and the extremas

Maxima/Minima using Langrange multiplier method

Finds the maximas and minimas of two variable functions (surfaces) using Langrange Multiplier method.

Input

  • function of two variables (equation of surface) in terms of x and y

Output

  • Displays if the critical points is a maxima or minima and point where it occurs (x,y)
  • Displays the value of the maxima or minima
  • Graph of the surface and the extremas
Note: Gives the same answer as previous code, just a different method

Volume of solid obtained by revolving a curve around an axis

Finds the volume of the solid obtained by revolving a curve (one variable function) around an axis

Input

  • function of two variables (equation of surface) in terms of x and y

Output

  • Displays the volume obtained by revolving the curve around y-axis
  • Graph of the solid whose volume was obtained

Gradient of a scalar-valued function

Finds the gradient of a scalar-valued function and represents it in a graph

Input

  • A scalar-valued function

Output

  • Displays the gradient of the scalar-valued function (vector field)
  • Graph of the resulting vector field

Curl of a vector field

Finds the curl of a vector field and represents it in a graph

Input

  • A vector field

Output

  • Displays the curl of the vector field (also a vector field)
  • Graph of the vector field

Divergence of a vector field

Finds the divergence of a vector field and represents it in a graph

Input

  • A vector field

Output

  • Displays the divergence of the vector field (a scalar quantity)
  • Graph of the vector field

matlab's People

Contributors

allenjonathan 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.