creating a function in different function
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hello guysi
I need to prepare a function the term numbers increase, when the new value becomes 1/1000 of the total value, the term increase will end. but I have to define this as a function because the equations I will write as a combination function will be replaced by increasing the power of x in the g(x). like that;
f(x)=1-(x^2/2^1)+(x^4/2^2)-(x^6/2^3)....+(x^12/2^6)...... (when new term is 1/1000 of f(x) for x value stop the function)
after stopped f(x) for example = f(x)=1-(x^2/2^1)+(x^4/2^2)-(x^6/2^3)
(I need move on to new function)
g(x)=f(x) + f(x^2)/(2^2) + f(x^3)/(2^3) + f(x^4)/(2^4)...... (when new term is 1/1000 of g(x) for x value stop the function)
thank you guys
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!