Gistlib Logo

gistlib

sin(𝑥) = 𝑥 − 𝑥 3 3! + 𝑥 5 5! − ⋯ (−1) 𝑛 𝑥 2𝑛+1 (2𝑛 + 1)! in matlab

main.m
syms x n;
f(x, n) = sum((-1)^n * x^(2*n+1) / factorial(2*n+1), n, 0, Inf);
75 chars
3 lines

similar matlab code snippets

how to calculate the normal distribution in matlab
how to calculate the derivative of a function in matlab
how to calculate the area of a parallelogram in matlab
how to calculate the probability of a logistic distribution in matlab
how to calculate the rayleigh distribution in matlab
how to calculate the area of a square in matlab
how to calculate the volume of a cylinder in matlab
how to calculate the area of a segment in matlab
how to calculate chi-square score in matlab
calculate the area of a triangle in matlab

related categories

matlab
math

gistlibby LogSnag