īut let's see if the Taylor series is correct? the return of this function is the same as ln(1-x) ? does it have some ready-made matlab function that computes this? What's up? help logĬompute the natural logarithm, 'ln (X)', for each element of X. this is what asks for the letter a of the question, you may have to create within this function a if that ensures that your x is within the range that the exercise asks for. To write a function using the equation of the statement is very simple, the sigma ( Σ ) of the formula tells us that you must sum the equation (-(x^n)/n), the iteration goes from 1 to infinito, does not mean that we will be calculating this to infinity, in fact the iteration will end when the value of n reaches the limit defined by the user, in the statement it leaves some things explicit, use x between -1 e 1, it also says ln(1-x) is equal to Σ(-(x^n)/n), I will not do everything for you, this is the function that does exactly the calculation of the formula Σ(-(x^n)/n) : function F = equacao(x,n) I was not going to respond, I understand that people need help, I will do my part, the question formula looks a lot like the Taylor series to find natural logarithm (as far as I remember the university lol).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |