home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / sm30a.zip / EXPANDLI.SM < prev    next >
Text File  |  1993-11-12  |  196b  |  6 lines

  1. #    expandLi expands li(n,x) into power series.
  2. #    See also: expand, expandGa, expandExp, expandLi.
  3.  
  4. li(n_,x_) := if(n>=1, -n*li(n-1,x)+ln(x)^n*x,
  5.     if(n < -1, (-li(n+1,x)+ln(x)^(n+1)*x)/(n+1)))
  6.