Info

この質問は閉じられています。 編集または回答するには再度開いてください。

computing issue

1 回表示 (過去 30 日間)
George
George 2012 年 4 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
we have this formula p(x)=(<f,f_0>/<p_0,p_0>)*p_0 + (<f,f_1>/<p_1,p_1>)*p_1 + ... + (<f,f_n>/<p_n,p_n>)*p_n where (<f,f_0>) for example is calculated by this formula : Integral from -1 to 1 ( |f*f_0|dx )^1/2 . I know everything, f,f_n,p_n, everything. I am new to matlab and i cannt make it work :/ Any help would be much appreciated !!! Thanks in advance !!
  1 件のコメント
Daniel Shub
Daniel Shub 2012 年 4 月 4 日
What have you tried so far? Have you read any of the MATLAB documentation?

回答 (1 件)

Richard Brown
Richard Brown 2012 年 4 月 5 日
You need to decide how to represent the f_i and f - whether by functions or by vectors (the function evaluated on some mesh).
Then you need to figure out how to evaluate the inner products. In the first case it would be a quadrature (lookup quad), and in the second, a (appropriately scaled) dot product. Hopefully that gives you enough to get going!
Or Google chebfun for the best of both worlds.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by