5996 Shares

Create legendre polynomials in MATLAB? Topic: Polynomial functions homework
June 17, 2019 / By Brook
Question: I do not know how to put the legendre polynomial equation (can be founded on wikipedia) onto MATLAB. I understand that they have legendre(x,n) but we have to create a function ourselves for homework. Best Answers: Create legendre polynomials in MATLAB? Aimerey | 9 days ago
👍 226 | 👎 9
Did you like the answer? Create legendre polynomials in MATLAB? Share with your friends

We found more questions related to the topic: Polynomial functions homework Originally Answered: Factoring polynomials? Originally Answered: Factoring polynomials?
Make me your contact, and look at some of my answers. I write very thorough answers, and they have examples already, which will save you time of writing or finding an example. or, I can copy and paste one or two... Question: Would anyone help me please? quadratic formula. x^2-3x-3= -5 Answer: Sure. The first thing you want to do is add 5 to both sides to zero it out. x^2-3x-3= -5 add 5: x^2-3x+2 Ok, let's see what we know so far. The x^2 doesn't have a coefficient, a number in front of it, so we know it'll be (x )(x ). The last number, positive 2, we get by multiplying, and since the middle term is a negative, we know we have to multiply two negatives to get the positive 2, so now we know we have (x - )(x - ). Now we need two numbers that when multiplied give us positive 2, and when added/subtracted give us negative 3. Those numbers must be -2 and -1, those are the only factors 2 has. So, the factors of your equation are: (x-2)(x-1). Question: Factor the polynomial x2 + 2x – 15? Answer: Ok, let' break it down to what we know so far. There isn't a coefficient, or a number in front of the x^2, so we know that we have (x )(x ). The signs are + and -, and we know that we multiply to the the last number. The last number is -15, and in order to get a negative number by multiplying, we have to multiply a negative and a positive. So now, we know we have (x+ )(x- ). Now we need to find two numbers that when multiplied give us -15, and when added/subtracted give us a positive 2. I think the numbers are 5 and 3, but where do we put the 5 and where do we put the 3? Since the middle factor, 2x, is positive, we want the larger factor of 15 to go with the + sign, so your polynomial, x^2+2x-15 is: (x+5)(x-3). wpf. wpf. Originally Answered: Factoring polynomials?
well if you have a trinomial like x squared + 10x + 24 you know that X times X is x squared so start of with this: (x ) (x ) since everything is positive in the trinomial, your factored answer will be (x + ?) (x + ?) Now what you have to do is figure out which two number will equal 24 when multiplied together and will also add up to 10 when you add them together. If you think for a minute, you will realize the the two numbers are 6 and 4. so your answer now is (x + 6) (x + 4) The trinomial is now factored. email me if you have any other questions. hope this helped. emai: [email protected] Originally Answered: Factoring polynomials?
Try the rational roots test. The possible rational roots of a polynomial are all the factors of the constant term positive and negative divided by all the factors of the leading coefficient positive and negative. For example: 2x^3+x^3-6x^2+12 The middle two terms are irrelevant. The factors of 12 are: +/- 1,2,3,4,6,12 (okay maybe should've chosen a simpler term) The factors of 2 are: +/- 1,2 Divide every factor of 12 into each factor of two to get: +/- 1,2,3,4,6,12 and +/- 1/2,1,3/2,2,3,6 +/- 1/2,1,3/2,3,4,2,6,12 are the possible rational roots. Then you can use synthetic division to see if the rational roots work. If none of them work, then the roots are either irrational or complex. Originally Answered: MATLAB linear regression problem?
Let's say that you have two vectors, x and y, which contains all of the coordinates x = [1 2 3 4 5 7 9] y = [3 5 1 8 0 7 11] you can calculate your formulas very easily... I assume that a0, a1 and N are known scalar constants. sum_y = a0*N + a1 * sum(x) sum_xy = a0 * sum(x) + a1*sum(x.^2) I don't know what you want to do with sum_y and sum_xy or what they represent, but that's the way to calculate them according to your formulas. Try it with your own numbers. Originally Answered: MATLAB linear regression problem?
YEAH! Completely happy birthday Jimmy! Misty Mountain Hop Dazed and stressed 10 Years gone Stairway to Heaven Immigrant tune Babe i am Gonna go away You The Rain song Over the Hills and a long way Away Black dog good occasions, unhealthy occasions Originally Answered: MATLAB linear regression problem?
i dont get your question.... why u want to use a loop in a linear rgression? its usually solution=A/b; where A is the Jacobian matrix of the system...

If you have your own answer to the question polynomial functions homework, then you can write your own version, using the form below for an extended answer.