Horner's algorithm

조회 수: 18 (최근 30일)
justtrying
justtrying 2019년 1월 30일
답변: Jan 2019년 1월 30일
I'm having trouble using Horner's algortihm. I'm supposed to use a 'for' loop for this algorithm to find the expansion of x-sinx. So far I have:
n=input('\nEnter polynomial max Degree:');
fprintf('\nEnter the coefficients from lowest to highest:');
But I don't know where to go from there. I'm new to matlab and coding so I'm kinda lost. Please help. Thank you!
  댓글 수: 1
Jan
Jan 2019년 1월 30일
What is your question?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2019년 1월 30일
To learn the basics, read the Getting Started chapters in the documentation. Read Matlab's Onramp also: https://matlabacademy.mathworks.com/ .

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by