home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / math / symbolic / 2105 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.8 KB  |  63 lines

  1. Newsgroups: sci.math.symbolic
  2. Path: sparky!uunet!darwin.sura.net!wupost!gumby!destroyer!ubc-cs!news.UVic.CA!sol.UVic.CA!dharr
  3. From: dharr@sol.UVic.CA (D.A. Harrington)
  4. Subject: Using expand on Taylor series in Maple
  5. Message-ID: <1992Jul28.213500.7497@sol.UVic.CA>
  6. Keywords: Maple, expand
  7. Sender: dharr@sol.uvic.ca
  8. Nntp-Posting-Host: sol.uvic.ca
  9. Organization: University of Victoria, Victoria, B.C. CANADA
  10. Date: Tue, 28 Jul 92 21:35:00 GMT
  11. Lines: 50
  12.  
  13. I seem to be unable to get "expand" to work on the substituted taylor
  14. series below, although simpler examples appear to work
  15. Suggestions much appreciated - please reply to the newsgroup or
  16. email to dharr@uvvm.uvic.ca
  17. Maple is running under CMS on an IBM 3090
  18.  
  19.     |\^/|     Licensed for use at: University of Victoria
  20. ._|\|   |/|_. WATCOM Products, Inc.
  21.  \  MAPLE  /  Version 4.2
  22.  <____ ____>  For on-line help, type  help();
  23.       |
  24. >
  25. t:=taylor(exp(x),x,3);
  26.                                             2      3
  27.                           t := 1 + x + 1/2 x  + O(x )
  28.  
  29. >
  30. subs(x=a+b,t);
  31.                                             2            3
  32.                      1 + a + b + 1/2 (a + b)  + O((a + b) )
  33.  
  34. >
  35. expand(");
  36.                                             2            3
  37.                      1 + a + b + 1/2 (a + b)  + O((a + b) )
  38.  
  39. >
  40. #why didn't it expand? this works:
  41. #why didn't it expand? this works:
  42. >
  43. s:=y^2 + O(y^3);
  44.                                       2      3
  45.                                 s := y  + O(y )
  46.  
  47. >
  48. subs(y=c+d,s);
  49.                                     2            3
  50.                              (c + d)  + O((c + d) )
  51.  
  52. >
  53. expand(");
  54.                           2            2            3
  55.                          c  + 2 c d + d  + O((c + d) )
  56.  
  57. >
  58. #so is there something special about Taylor series?
  59. #so is there something special about Taylor series?
  60. >
  61. quit;
  62. words used=12949, alloc=11176, time=.122
  63.