Questions tagged [power-series]

13 questions
6
votes
2 answers

Power Series in Haskell

I am trying to write the power series in Haskell, e^x = 1 + x + x^2/2! + x^3/3! + ... such that it will out put [1,1,1/2,1/6,...] so far I got: factorial 0 = 1 factorial n = n * factorial (n - 1) powerSrs x = 1 : powerSrsFunc[1..] where …
ali
  • 846
  • 2
  • 18
  • 34
4
votes
2 answers

Plot power series gnuplot

I'd like to know how to plot power series (whose variable is x), but I don't even know where to start with. I know it might not be possible plot infinite series, but it'd do as well plotting the sum of the first n terms.
2
votes
2 answers

Computing A Specific Generating Function Sequence

http://www.research.att.com/~njas/sequences/A097196 I was wondering how to continue generating the sequence given in the link. It is based off a generating function. Any ideas would be appreciated. Certain numbers in a certain sequence of this…
Auburnate
  • 437
  • 1
  • 4
  • 11
2
votes
1 answer

How to generate a symbolic multivariate polynomial of a given dimension in SymPy?

I want to use power series to approximate some PDEs. The first step I need to generate symbolic multivariate polynomials, given a numpy ndarray. Consider the polynomial below: I want to take a m dimensional ndarray of D=[d1,...,dm] where djs are…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
1
vote
2 answers

Power series with array input

I want to do the following in Matlab: i is the imaginary unit r is a vector of length n: [r(1),...,r(n)] phi is a 1x300 double, i.e. [phi(1),...,phi(300)] sum(r(1:n).*(1i.^(1:n))./factorial(1:n)) This would work if there was no phi. But how can I…
user914822
  • 13
  • 3
1
vote
1 answer

Generate power series trendline in Google Apps Script

Something I'm writing in Google Apps Script for Google Sheets generates a chart. I'd like to have it generate a power series trendline, however I cannot figure out how to do this in Google Apps Script. I can generate a polynomial or linear…
1
vote
0 answers

Encoding/Decoding with power series

Intro I got a string original, which was encoded (using the procedure below), then encrypted with rsa and then decoded again, so I'm left with a ciphertext s. To get back to the original plaintext I'd encode s, then decrypt and then decode…
darthDoe
  • 11
  • 3
1
vote
4 answers

Any (free) tools to compute Taylor series expansion of a function?

After painful trial and error, I arrived at a grotesque function that behaves the way I want it to: (exp(- abs(6 * (x - 0.7)) ^ 2.5 ) + exp(- (x-1.7) ^ 8 ) * 1.2)/1.5785 I only care about the values for the range 0 <= x <= 1 and the slope at x =…
Paul Chernoch
  • 5,275
  • 3
  • 52
  • 73
1
vote
1 answer

How do I convert the SERIESSUM function to VB6?

On the Daily Dose of Excel website, written by the late Frank Kabel, there are some formulae which can stand in for ATP functions. Not being an Excel guru, I'm struggling with converting one (so far!) to VB6. (Why I'm doing this I may relate once…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
0
votes
0 answers

How to obtain explicit formula of coefficients for generating functions

Is there any function in python or sage to obtain explicit formula of coefficients for generating functions. For example, Catalan generating function is given as $${\displaystyle c(x)={\frac {1-{\sqrt {1-4x}}}{2x}}}$$ And I need to obtain general…
Rjda
  • 1
  • 1
0
votes
2 answers

How to get the power series G(z^2) from G(z)

I think it's an easy question, but I can't find how to do it correctly. substpol works almost as I need, but doubles the polynomial degree. For example, with : G(z)=1+2*z+3*z^2+O(z^5) I got: substpol(1+2*z^2+3*z^3 + O(z^5),z,z^2) %20 = 1 + 2*z^4…
Damien
  • 300
  • 1
  • 8
0
votes
0 answers

Doing curve fitting in R for a power series

I have trying to estimate the annual of an investment scheme which applied dollar cost averaging, which the increment of value is listed as below (sorry that MathJax looks like greek to me, so I didn't use it): x: regular contribution, which is 1500…
lokheart
  • 23,743
  • 39
  • 98
  • 169
-2
votes
2 answers

Using biginteger to find the sequence of sum of powers

Sum(N) =1^1+2^2+3^3+...+N^N Using Java, How would I use BigInteger to find the smallest integer N such that the value of Sum(N) is larger than 10^20? I'm really stuck,please give me some advice This is what I have so far: import…