Software by Carlo Zambaldo (info@carlozambaldo.it) This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Raccolta di alcune funzioni utili durante il corso di Calcolo Numerico
- insiemeF
- condizioni (requires controlla) finds propreties of Matrices and shows methods to solve the linear system "Ax=b".
- Wilkinson estimates the maximum value of the perturbation expected on a given matrix
- controlla
- condizioniF
- metodocorde
- metodosecanti
- ptofis_sistemi
- molteplicity computes the molteplicity of the zero of a function
- CGL (chebyshev Gauss Lobatto) computes CGL knodes given the number of knodes-1 required and the interval [a,b]
- Lebesgue (requires funzione_caratteristica_lagrange) draws Lagrange polynomials and prints out the Lebesgue constant
- funzione_caratteristica_lagrange
- interp_trigo.m outputs the trigonometric interpolator as a function handle
- grado_di_esattezza computes the degree of accuracy of a numerical formula (for the integration)
- stability_region, stability_region_contour plots the stability region of a particular numerical method (notice: the stability function is required!)
- leap_frog implements the Leap-Frog method
- runge_kutta solves the given Cauchy Problem, given a particular Butcher tableau.
- diffusione_trasporto_reazione, diffusione_trasporto_reazione_DN, diffusione_trasporto_reazione_ND, diffusione_trasporto_reazione_NN these scripts solve a diffusion-transport-reaction problem on the interval [a,b] (the _XY after "diffusione_trasporto_reazione" stands for the type of boundary conditions (X for point a and Y for point B): N = Newmann, D = Dirichlet, if not present is DD). Please notice: sometimes the program suggests better viscosity to reduce numerical oscillations.
- pechlet evaluates local Péclet number
- deriva outputs the derivative of the given function as a function handle
- integra outputs the integral of the given function as a function handle (notice: no constant added [c=0]!)
- jacobiana
- stimaalgebrica_p estimates C and p in: err <= C * h^p
- stimaerr
- plot_soluzione quickly plots the solution obtained with a numerical method (i.e. diffusione_trasporto_reazione)
- tridiag outputs a tridiagonal matrix
- pentadiag outputs a pentadiagonal matrix
- poly2func
Please notice: the function sym2fun was written by Marty Lawson (more info inside the script)
Copyright 2021 Carlo Zambaldo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- NonCommercial — You may not use the material for commercial purposes.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.