Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6836187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:19:33+00:00 2026-05-26T23:19:33+00:00

I am attempting to define a function in Maple that defines the Taylor Series

  • 0

I am attempting to define a function in Maple that defines the Taylor Series (without using the taylor() command). I am using the sigma notation definition as found here.

Essentially, I need a function that takes the variable a, and a variable f where f is a function of a, as seen in that wikipedia page. For simplicity’s sake, I’ve used only the variable a and defined the function myself.

For the scope of this question, let’s assume I want my code to return the taylor series of sqrt(x) about x=16

So far I have the following code for the sum:

t:=a->sum((D@@n)(f(a))*(x-a)^n/n!,n=0..4);

I’ve defined the function f on a previous line, as sqrt(x).

When I call the function, t(16);, Maple returns only the first term of the series, 4. When I supplant a variable for a, I can see that Maple is taking the derivative of a, rather than the derivative of f(a) at each term. This of course creates zero terms and returns only 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:19:34+00:00Added an answer on May 26, 2026 at 11:19 pm

    The syntax you want for D here is (D@@n)(f)(a) instead of what you had.

    You could make the operator accept another parameter to designate the upper bound of the index. Unless you want Maple to try and do symbolic summation (doubtful, for such finite sums and your intent), you’re likely better off using add instead of sum for this.

    restart:
    t:=(a,N)->add((D@@n)(f)(a)*(x-a)^n/n!,n=0..N):
    
    f:=sqrt:
    Digits:=15:
    
    S:=t(16,4):
    eval(S,x=17.0);
                        4.12310552597046
    sqrt(17.0);
                        4.12310562561766
    
    S:=t(16,10):
    eval(S,x=17.0);
                        4.12310562561768
    sqrt(17.0);
                        4.12310562561766
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to pass a pointer to a function that is defined in one
I'm attempting to define an extremely simple utility method that will save me from
I am currently attempting to define a function based on a compiler flag. If
i'm using jquery validation plugin and i'attempting to define a rule for the only
I am attempting to develop a class with a function that can take a
I'm attempting to write a function in assembly that sets a block of memory
Is it possible to call a function without first fully defining it? When attempting
I'm attempting to use the #define directive to change all of ulong to unsigned
Attempting to print out a list of values from 2 different variables that are
Attempting to use the data series from this example no longer passes the JSONLint

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.