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 Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by