| Đăng nhập qua LiketLy 

trả lời
  • Câu trả lời được chấp nhận

    Let's say we want to find Maclaurin series of sin(x)

    The statements
    >> syms x
    >> f = sin(x)
    >> T = taylor(f,8)
    return
    T =
    x-1/6*x^3+1/120*x^5-1/5040*x^7
    which is all the terms up to, but not including, order eight in the Taylor series for f(x). Although the function is called taylor, technically T is a Maclaurin series, since its basepoint is a = 0.

    If we want Taylor series for sin(x) about x = pi/2 with all the terms up to, but not including, order five, we write
    >> syms x
    >> f = sin(x)
    >> T = taylor(f,5,pi/2)
    and the result is:
    T =
    1-1/2*(x-1/2*pi)^2+1/24*(x-1/2*pi)^4

    Perhaps you'll find following function useful:
    pretty(T)
    prints T in a "prettier" format resembling typeset mathematics

    Trả lời bởi bientapvien01
    ăm trước
    0 1
Những câu hỏi tương tự
Câu hỏi từ Thể loại Máy tính, phần mềm