4/9/2023 0 Comments Freemat inline eulers constant![]() In example first we take a range for x axis the range is from -2 to 2 whit a difference of 0.1 this range we take in a variable x1, x1 variable is corresponds to x-axis. In this example we plot a delta function using a dirac function, basically we use a dirac (n, x1) this syntax is used for represent the nth derivative of delta function as x1. N2 = d1 = dirac(n2,x1)subs(d1,x1,0)Īs we saw the d1 values are in the form of vector and then we substitute the x1 with 0 and the result is in infinity or –infinity. Then it displays the result in the form of infinity and –infinity. Then we substitute the value of x is 0, for the substitution we use a subs function, subs(d1, x1, 0) returns a copy of d1, replacing all occurrences of x1 with 0, and then evaluates d1. One of the input arguments is be scalar and the other one is a vector or a matrix, then dirac statement expands the scalar into a vector or matrix of the same size as per the other argument. One of the input arguments must be a scalar, or Y and n must be vectors or matrices of the same size. Now we use a dirac function, we take direc (n1, x1), it will expand the scalar into the vector using dirac function as the same size of n1 and compute the result and that result stored in d1 variable. ![]() Now we take order of derivative and it stored in n1, and the n1 is vectors so we take a value are 0, 1, 2, 4, and 5. Then we use a syms function, syms is a used to create symbolic variables and functions, we take syms x1. So the dirac (n1, x1) is used to take a nth derivative of delta function as x1. Let us see an example, in this example we take a nth derivative using a dirac function, dirac is a dirac delta function. Given below are the examples mentioned : Example #1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |