Math 104A Final ProjectsGeneral Instructions: Please follow TA’s instructions (on Gauchoapace) to turn it in. Writeyour own code individually. Do not copy codes!The Discrete Fourier Transform (DFT) of a periodic array fj , for j = 0, 1, ..., N ?1 (correspondingto data at equally spaced points, starting at the left end point of the interval of periodicity) isevaluated via the Fast Fourier Transform (FFT) algorithm (N power of 2). Use an FFT package,i.e. an already coded FFT (the functions fft and ifft in Matlab or numpy.fft in python).1. Letck =NX?1j=0fje?i2πkj/N .Prove that if the fj , for j = 0, 1, ..., N ? 1 are real numbers then c0 is real and cN?k = ˉck,where the bar denotes complex conjugate.2. Which fft package are you using? Read the manual of your fft package, and write down theformula it’s using to return the coefficients. (Note: different packages may use differentdefinitions of the DFT, so it is very important to figure out what your package is calculatingbefore using it.)3. Let PN (x) be the trigonometric polynomial of lowest order that interpolates the periodicarray fj at the equidistributed nodes xj = j(2π/N), for j = 0, 1, ..., N ? 1, i.e.PN (x) = 12a0 +N/X2?1k=1(ak cos kx + bk sin kx) + 12aN/2 cos ?N2x,for x ∈ [0, 2π], whereak =2NNX?1j=1fj cos kxj , for k = 0, 1, ..., N/2,bk =2NNX?1j=1fj sin kxj , for k = 0, 1, ..., N/2 ? 1.?All course materials (class lectures and discussions, handouts, homework assignments, examinations, web materials)and the intellectual content of the course itself are protected by United StatMath 104A作業(yè)代做谒拴、Python程序設(shè)計(jì)作業(yè)調(diào)試、代做algorithm課程作業(yè)涉波、Python語(yǔ)言作業(yè)代寫 幫做es Federal Copyright Law, theCalifornia Civil Code. The UC Policy 102.23 expressly prohibits students (and all other persons) from recordinglectures or discussions and from distributing or selling lectures notes and all other course materials without the priorwritten permission of class instructors.1Write a formula that relates the complex Fourier coefficients computed by your fft packageto the real Fourier coefficients, ak and bk, that define PN (x).4. Let fj = esin xj, xj = j2π/N for j = 0, 1, ..., N ?1. Take N = 8. Using your fft package obtainP8(x) and find a spectral approximation of the derivative of esin x at xj for j = 0, 1, ..., N ? 1by computing P08(xj ). Compute the actual error in the approximation.5. The solution Pn(x) to the Least Squares Approximation problem of f by a polynomial ofdegree at most n is given explicitly in terms of orthogonal polynomials ψ0(x), ψ1(x), ...,ψn(x), where ψj is a polynomial of degree j, byPn(x) = Xnj=0ajψj (x), aj =hf, ψj ihψj , ψj i.(a) Let Pn be the space of polynomials of degree at most n. Prove that the error f ? Pn isorthogonal to this space, i.e. hf ? Pn, qi = 0 for any q ∈ Pn.(b) Using the analogy of vectors interpret this result geometrically (recall the concept oforthogonal projection).6. (a) Obtain the first 4 Legendre polynomials in [?1, 1].(b) Find the least squares polynomial approximations of degrees 1, 2, and 3 for the functionf(x) = ex on [?1, 1].(c) What is the polynomial least squares approximation of degree 4 for f(x) = x3 on [?1, 1]?Explain.轉(zhuǎn)自:http://www.3zuoye.com/contents/3/4828.html
講解:Math 104A抓韩、Python、algorithm鬓长、PythonC/C++|SPSS
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門豆茫,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人屋摇,你說(shuō)我怎么就攤上這事揩魂。” “怎么了炮温?”我有些...
- 文/不壞的土叔 我叫張陵火脉,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我柒啤,道長(zhǎng)倦挂,這世上最難降的妖魔是什么? 我笑而不...
- 正文 為了忘掉前任担巩,我火速辦了婚禮方援,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘涛癌。我一直安慰自己犯戏,他們只是感情好,可當(dāng)我...
- 文/花漫 我一把揭開(kāi)白布拳话。 她就那樣靜靜地躺著先匪,像睡著了一般。 火紅的嫁衣襯著肌膚如雪弃衍。 梳的紋絲不亂的頭發(fā)上呀非,一...
- 那天,我揣著相機(jī)與錄音镜盯,去河邊找鬼姜钳。 笑死坦冠,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的哥桥。 我是一名探鬼主播,決...
- 文/蒼蘭香墨 我猛地睜開(kāi)眼激涤,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼拟糕!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起倦踢,我...
- 序言:老撾萬(wàn)榮一對(duì)情侶失蹤送滞,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后辱挥,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體犁嗅,經(jīng)...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年晤碘,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了褂微。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
- 正文 年R本政府宣布,位于F島的核電站扰楼,受9級(jí)特大地震影響呀癣,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜弦赖,卻給世界環(huán)境...
- 文/蒙蒙 一项栏、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧腾节,春花似錦忘嫉、人聲如沸。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至劈榨,卻和暖如春访递,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背同辣。 一陣腳步聲響...
- 正文 我出身青樓响巢,卻偏偏與公主長(zhǎng)得像描滔,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子踪古,可洞房花燭夜當(dāng)晚...
推薦閱讀更多精彩內(nèi)容
- 小雅·谷風(fēng) 習(xí)習(xí)谷風(fēng),維風(fēng)及雨烟瞧。將恐將懼诗鸭,維予與女。將安將樂(lè)燕刻,女轉(zhuǎn)棄予只泼。 習(xí)習(xí)谷風(fēng),維風(fēng)及頹卵洗。將恐將懼请唱,置予于懷。...
- 如果經(jīng)常使用 docker本橙,你會(huì)發(fā)現(xiàn) docker 占用的資源膨脹很快,其中最明顯也最容易被察覺(jué)的應(yīng)該是對(duì)磁盤空間...