日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

Root finding part代做、代寫c++,Python編程語言

時間:2024-02-03  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Lab Report #1 - Root finding part 1
Math 9
Due 2/5 (see Canvas for details)
Instructions: Submit your report as a Matlab live script (i.e. a .mlx
file). Plots should be produced and displayed within the .mlx file. Note:
there are no regrades for this assignment. The assignment is out of 10
points.
Introduction: One of the key uses of root-finding is to solve equations
that we can’t solve analytically (i.e. by doing algebra, etc.). Note that any
equation with one unknown can be transformed into a root-finding problem
by subtracting the right-hand side from the left-hand side to get something
like
LHS − RHS = 0
Here we will look at a well-known example of an equation that can’t be
solved analytically which arises in quantum mechanics: the finite square well
(if you’re curious, click here (Wikipedia). Don’t worry - no knowledge of
quantum mechanics is required or expected! If you’re interested, here is a
simple summary of the physical meaning behind the problem we’ll study.
A particle inside a well is like a ball bouncing around inside a box
with an open top. The ball’s bounces could be small or large, but
if it bounces too high it will escape from the box. We will let v
represent the energy of the particle (like the height of the bounces)
and u0 the energy required to escape the well (like the depth of the
box). As long as v < u0, the particle will be trapped in the well.
The key point of quantum physics is that unlike the bouncing
ball, there will be only a finite number of possible ”energy levels”
- amounts of energy the particle can have. Here, we’ll use our
Matlab knowledge to study this and make a nice diagram of the
energy levels.
1
Tasks
1. (3 points) Energy levels can be divided into even and odd (referring to
whether they’re associated with a state having even or odd symmetry).
For a given u0 describing the depth of the well, even energy levels are
given by the values of v ∈ (0, u0) that are roots of the equation
f(v) = cos v
q
u
2
0 − v
2 − v sin v = 0 (1)
Using u0 = 20, produce the plot of f(v) shown below (on the next page)
via the following steps:
(a) Create an array 100 evenly-spaced values of v from 0 to u0.
(b) Compute an array of the values of f(v) for each value in your v
array by implementing Equation 1 (above) in Matlab. Remember
to use element-wise operators (with the dot)!
(c) To make the line easier to see, we will increase the width. Fill
in the blanks: plot( , , ’LineWidth’, 2) to plot v on the
horizontal axis and f(v) on the vertical axis.
(d) Immediately after your plot command, set the axis labels and title
as shown, using the commands xlabel, ylabel, and title. Note:
u0 can by typed like "u 0".
(e) Use the command fontsize( , "points") to set the font size
large enough to be read. (Try something around 14).
2. (1 points) Repeat the above process to produce a similar plot for u0 =
100. You should expect to see that it looks very jagged.
3. (1 point) Think about what part of our code we could change in order
to make the line smoother. By making an appropriate change, create
a new plot for u0 = 100 that looks smooth like the example from Task
1.
4. (1 point) Using your bisect function, compute and display the only root
of f(v) for u0 = 1, with an error under 10−6
. Hint: You need to figure
out what to use as your initial xl and xr. Try making a plot and looking
at it to choose a starting interval that contains the root!
2
Figure 1: For Task 1.
5. (4 points) Following the following steps, produce an array (you can call
it root array) containing all roots for u0 = 20.
(a) Create an array 100 evenly-spaced values of v from 0 to u0.
(b) Compute an array of the values of f(v) for each value in your v
array (just like above).
(c) Next, we want to find pairs of successive v values in our v array such that the sign of f(v) changes between them, to serve
as our xl and xr in the bisection method. Create xl array and
xr array such that the i-th root lies between xl array(i) and
xr array(i). At the bottom of this file there’s a snippet that
shows you how to do this - you can copy it for no loss of points.
However, If you want to practice thinking like a Matlab programmer, try coming up with a way to do this via logical indexing
yourself. You should find 7 of them!
(d) Pre-allocate a 7-element vector called root array filled with zeros.
(e) Using a for loop, loop over a variable i from 1 to 7, and at each
step call the bisect function using your left and right endpoints
from xl array and xr array. To input the function (first input
3
to bisect), use an anonymous function. Recall the syntax: If we
wanted to express just f(v) = p
u
2
0 − v
2
, it would be
@(v) sqrt(u_0.^2 - v.^2)
so you just have to change the part after the @(v) to the correct
f(v) from above.
(f) Display the resulting value of root array. You should get values
of approximately:
1.4959 4.4862 7.**11 10.4460 13.4028
16.**40 19.1433
4
Help for 5c: Assuming your v and f arrays are called v array and f array,
try using the following code:
inds = find(sign(f_array(1:(end-1))) ~= sign(f_array(2:end)));
xl_array = v_array(inds);
xr_array = v_array(inds+1);
如有需要,請加QQ:99515681 或WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代寫指標 代寫期貨策略 指標代寫
  • 下一篇:代發EI會議 2024 IEEE第三屆電氣工程、大數據和算法國際會議(EEBDA 2024)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        欧美欧美全黄| 亚洲欧美激情四射在线日| 久久免费视频在线| 欧美性猛交xxxx免费看久久久| 欧美怡红院视频一区二区三区| 久久久999成人| 国产精品系列在线播放| 久久性天堂网| 久久成人av少妇免费| 亚洲日本视频| 国产精品亚洲一区二区三区在线| 日韩视频免费在线| 久久久久国产一区二区三区| 国产精品每日更新| 在线观看日韩av| 欧美精品一区二区三区高清aⅴ| 欧美日韩综合另类| 国产精品久久久久久超碰| 国产亚洲欧美日韩美女| 在线成人激情| 亚洲视频在线看| 在线色欧美三级视频| 一区二区三区蜜桃网| 国产精品无码专区在线观看| 亚洲在线观看免费| 亚洲毛片播放| 麻豆成人小视频| 美女爽到呻吟久久久久| 久久久久国产一区二区三区| 日韩视频免费大全中文字幕| 在线观看中文字幕不卡| 欧美精品v日韩精品v国产精品| 国产精品成av人在线视午夜片| 在线天堂一区av电影| 欧美日韩亚洲在线| 亚洲激情网站| …久久精品99久久香蕉国产| 久久综合99re88久久爱| 午夜影院日韩| 亚洲激情在线观看视频免费| 国产精品乱码| 久久精品国产清自在天天线| 久久精品国内一区二区三区| 欧美顶级大胆免费视频| 欧美日韩综合不卡| 夜夜嗨av一区二区三区中文字幕| 国产欧美日韩综合精品二区| 女人香蕉久久**毛片精品| 亚洲人精品午夜在线观看| 国产伦精品一区二区三区四区免费| 国产精品一区二区男女羞羞无遮挡| 久久综合狠狠| 国产伦精品一区二区三区高清| 久久综合色一综合色88| 裸体素人女欧美日韩| 欧美日韩喷水| 在线观看成人av| 欧美日韩在线不卡| 久久精品噜噜噜成人av农村| 亚洲国产91色在线| 亚洲视频久久| 在线欧美影院| 美女脱光内衣内裤视频久久网站| 国产精品一卡| 国产精品亚洲美女av网站| 欧美精品v国产精品v日韩精品| 欧美激情2020午夜免费观看| 国产精品中文字幕在线观看| 国产精品成人在线| 欧美日韩成人一区二区| 久久夜色精品国产噜噜av| 午夜精品久久久久久久蜜桃app| 欧美午夜电影在线观看| 欧美.日韩.国产.一区.二区| 久久精品国产亚洲精品| 日韩一级片网址| 香蕉久久夜色| 国产综合欧美在线看| 国内精品写真在线观看| 欧美在线视频一区二区| 欧美日本在线| 在线成人www免费观看视频| 亚洲激情第一页| 国产精品尤物福利片在线观看| 亚洲永久视频| 野花国产精品入口| 欧美国产日韩一区二区在线观看| 欧美一区二区三区免费在线看| 尤物九九久久国产精品的分类| 亚洲韩国日本中文字幕| 韩国一区二区三区在线观看| 激情欧美丁香| 欧美性猛交xxxx乱大交退制版| 国产午夜精品久久久久久免费视| 国产欧美日韩伦理| 在线亚洲国产精品网站| 免费的成人av| 一本久道久久综合中文字幕| 亚洲国产成人91精品| 久久精品日产第一区二区| 亚洲视频在线二区| 亚洲欧美区自拍先锋| 亚洲男人的天堂在线观看| 午夜欧美不卡精品aaaaa| 国产日韩欧美综合在线| 你懂的国产精品永久在线| 国内精品**久久毛片app| 亚洲精品国精品久久99热| 久久精品国产久精国产爱| 麻豆成人综合网| 久久久亚洲一区| 久久精品国产久精国产思思| 久久婷婷一区| 日韩视频免费观看高清完整版| 美女视频一区免费观看| 欧美与欧洲交xxxx免费观看| 欧美成人情趣视频| 国产精品高潮呻吟久久| 欧美激情久久久久| 黄色一区三区| 99日韩精品| 欧美日韩的一区二区| 国产精品成人一区二区网站软件| 麻豆国产精品一区二区三区| 欧美日韩亚洲高清| 另类酷文…触手系列精品集v1小说| 先锋影音网一区二区| 国产嫩草一区二区三区在线观看| 99香蕉国产精品偷在线观看| 亚洲毛片在线观看| 国产一区二区黄色| 欧美色欧美亚洲高清在线视频| 国产精品成人免费精品自在线观看| 亚洲综合精品自拍| 久久久www成人免费无遮挡大片| 欧美成人午夜免费视在线看片| 欧美一区二区三区成人| 国内精品一区二区三区| 欧美精品免费在线| 亚洲激情不卡| 99www免费人成精品| 久久综合久久综合这里只有精品| 卡一卡二国产精品| 国产老女人精品毛片久久| 亚洲黄一区二区| 91久久夜色精品国产九色| 一区二区电影免费在线观看| 国产日韩亚洲欧美精品| 鲁鲁狠狠狠7777一区二区| 你懂的视频欧美| 亚洲自拍都市欧美小说| 国产一区二区三区久久| 亚洲精品日韩久久| 香蕉久久久久久久av网站| 亚洲另类视频| 欧美理论在线播放| 欧美一区亚洲一区| 国产精品草草| 亚洲欧洲综合| 国产精品久久一区二区三区| 亚洲经典在线| 国产精品无人区| 午夜精品美女久久久久av福利| 欧美一区二区福利在线|