Coding
import math
def sin(x,n):
s = 0
for i in range(n):
sign = (-1)**i
s = s +
((x**(i))/math.factorial(i))*sign
return s
x=int(input("x in "))
n=int(input("number of terms nth term"))
print(round(sin(x,n),2))
print("Original value of sin(x) is:")
print(math.sin(x))
output:
if you still have any Problem regarding this question please comment and if you like my code please appreciate me by thumbs up thank you.........
The power series for the sine function is sinc) , x x sin(x)-x+ ldeatiy de prodems...
(1 point) Consider the Fourier sine series: ) 14, sin( f(z) a. Find the Fourier coefficients for the function f(x)-9, 0, TL b. Use the computer to draw the Fourier sine series of f(x), for x E-15, 151, showing clearly all points of convergence. Also, show the graphs with the partial sums of the Fourier series using n = 5 and n = 20 terms.
(1 point) Consider the Fourier sine series: ) 14, sin( f(z) a. Find the Fourier...
1. Express function Faz) = sin(A sin tr), 0 < x < as a Fourier sine series. λ is a parameter. Hint: use the integral representation for Bessel functions.
Expand the given function in an appropriate cosine or sine series f(x) = 1x1, -π <x<π F(x) = sin nx cos nx + n=1L Suhmit Answor Savo Drogroso
4.1.26 If y has the double sine series Ek by sin kx sin ly, show that Poisson's equation - Uxx - Wyſ is solved by the double sine series u = b sin kx sin ly/(k? + 1). This is solution with u = 0 on the boundary of the square -1 < x, y <n.
(1 point) Find the appropriate Fourier cosine or sine series expansion for the function f(x) = sin(x), -A<<. Decide whether the function is odd or even: f(3) = C + C +
The sine function f(x)=sin(x) has a peak for values of , where n=1,5,9... List the first 5 values of x for which the sine function has a peak
Find a power series representation for the function. (Give your power series representation centered at x = 0.) Kx) = In(s - x) ) Ins) - (L ) Determine the radius of convergence, R. Find a power series representation for the function. f(x) = x2 tan-(x3) ax)= ] (! Determine the radius of convergence, R. R- Tutorial Exercise Evaluate the indefinite integral as a power series. What is the radius of convergence R? 11-12 de Step 1 Using Using ---...
2. Consider the function f(x) defined on 0 <x < 2 (see graph (a) Graph the extension of f(x) on the interval (-6,6) that fix) represents the pointwise convergence of the Sine series. At jump discontinuities, identify the value to which the series converges (b) Derive a general expression for the coefficients in the Fourier Sine series for f(x). Then write out the Fourier series through the first four nonzero terms. Expressions involving sin(nt/2) and cos(nt/2) must be evaluated as...
n=0 4. Using the power series cos(x) = { (-1)",2 (-0<x<0), to find a power (2n)! series for the function f(x) = sin(x) sin(3x) and its interval of convergence. 23 Find the power series representation for the function f(2) and its interval (3x - 2) of convergence. 5. +
1. What is the Maclaurin series for the function sin(x)? Please
determine the minimum number of terms needed to compute sin(0.1)
accurate to 12 decimal places (rounded), using a) Taylor’s theorem
and b) alternating series theorem.
Show your work and justify your answers for the above
problem.
2. Create two random matrices A and B each of size ? × ?. Write a
computer program in Java or Matlab to compute
a) D(i, j) = A(i, j) * B(i, j)...