# Tagged Questions

35 views

### Best program for multiplying many multivariable polynomials

I want to make a table with two columns: The first column will consist of many(possibly hundreds) of polynomials in two variables. The second column will be a function applied to all of the ...
31 views

### How to expand quadratic equations in Octave/Matlab?

I have some column vectors, and I put them in a row, so I have $[a \, b \, c]$. Now I want to get a matrix of the form $[a^2 \, b^2 \, c^2 \, ab \, ac \, bc]$. It is like expanding $(a+b+c)^2$, but ...
48 views

### How can I find a tranformation matrix/Mathematical relation between two 5th degree polynomial curves in space?

I have the equation of two 5th degree polynomials which they don`t intersect with each other .Each curve is made of 100 points and these two curves looks similar but there are small differences .I am ...
27 views

### trigonometric polynomial using FFT

I am trying to use the FFT to approximate a given function. So i have 10 points xk that are given for example, if i use the FFT that will give me Xk. So now using the inverse FFT we can get the ...
35 views

### Matlab: Calculate Lagrange interpolaton polynomial

I'm new to Matlab so I don't even know where to start. I need to calculate Lagrange's interpolation polynomial of some function f in the case when the nodes are ...
66 views

### MATLAB: Approximate tomorrow's temperature with 2nd, 3rd and 4th polynomial using the Least Squares method.

The following is Exercise 3 of a Numerical Analysis task I have to do as part of my university course on the subject. Find an approximation of tomorrow's temperature based on the last 23 values ...
108 views

### How do you generate a surface who's value around the origin is within some range

What's a quick way to generate a smooth, closed-form surface that will be within the range $[0,1]$ for $x, y \in [-1,1]\times[-1,1]$? The surfaces should be of similar complexity to $2\times2$-degree ...
180 views

### Creating image in matlab with specified level sets of a complex polynomial.

I am trying to create an image in matlab which contains specified level sets for a complex polynomial. Suppose, for example, I wanted to create an image containing the sets ...
707 views

11k views

### How to use polyfit() function in Matlab?

First of all i am new to Matlab, and not sure whether to use polyfit or something else for my problem. I plotted a graph with the following matlab code: ...
178 views

### Trying to sort the coefficients of the polynomial $(z-a)(z-b)(z-c)…(z-n)$ into a vector

So I have a factored polynomial of the form $(z-a)(z-b)(z-c)\ldots(z-n)$ for $n$ an even positive integer. Thus the coefficient of $z^k$ for $0 \le k < n$ will be the sum of all distinct $n-k$ ...