Code Monkey home page Code Monkey logo

thiagopassos2001 / numerical-calculation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23 KB

Contains functions for numerically solving of algebra and calculus problems, applying traditional methods in mathematics. Developed during the course of Numerical Calculus for Civil Engineering

Home Page: https://github.com/thiagoPassos2001/numerical-calculation

License: MIT License

Python 100.00%
calculo-numerico calculo python matematica mathematics calculus root integration derivative raiz

numerical-calculation's Introduction

Cálculo Numérico (Numerical Calculation)

Descrição: Contém funções para a resolução numérica de problemas de álgebra e cálculo, aplicando métodos tradicionais em matemática. Desenvolvido durante a disciplina de Métodos Numérico para Engenharia Civil (Contains functions for numerically solving of algebra and calculus problems, applying traditional methods in mathematics. Developed during the course of Numerical Methods for Civil Engineering).

Conteúdo:

Raízes Numéricas - NumericalRoot.py

  • BinaryChoice

Example:

function = lambda x: x + 2
a = 0
b = -5
xk = (a + b)/2

a, b = BinaryChoice(function, a, b, xk)

print(a,b)

OUTPUT: -2.5, 0
  • VerificationBolzanoWeierstrassTheorem

Example:

function = lambda x: x + 2
a = 0
b = 5

if VerificationBolzanoWeierstrassTheorem(function, a, b):
    print('yes, the root is in the range')
else:
    print('no, the root is not in the range')
    
OUTPUT: 'no, the root is not in the range'
  • Bisection

Example:

f = lambda x:(x**3) + (2*x) - 4
Bisection(f,1,5,i_max=False,e_abs=False,e_rel=0.01)

OUTPUT: 
{'e_abs': 0.0011019706726074219,
 'e_rel': 0.006622516556291391,
 'iterations': 9,
 'root': 1.1796875}
  • False Position

Example:

f = lambda x:(x**3) + (2*x) - 4
FalsePosition(f,1,5,i_max=100,e_abs=False,e_rel=0.01)

OUTPUT:
{'e_abs': 0.28503459703327927,
 'e_rel': 0.00897367452059495,
 'iterations': 7,
 'root': 1.1320673171230085}
  • FixedPoint
  • NewtonRaphson
  • Secant

Solução EDOs de 1ª Ordem - NumericalDerivative.py

  • EulerMethod
  • MidpointMethod
  • HeunMethod
  • RalstonMethod
  • RungeKutta4Method
  • FiniteDifference1Method

numerical-calculation's People

Contributors

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