99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

PX390編程代做、C/C++程序語言代寫

時間:2023-11-30  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



PX3** 202**4, Assignment 3
1 Intro
The purpose of this exercise is to further expand your knowledge of C and your
ability to understand and test numerical code. You are given a code which
should solve two coupled partial differential equations. The code is, however,
broken and needs to be fixed. Your task is to read the specification, understand
the program, and ‘debug’ it. At the end of this task the program should do
what these specifications say it is meant to do. Some of these problems with
the code are basic C programming errors, other are more subtle mismatches
between the required and actual code behaviour.
You should submit a single C source file with a list of corrected bugs, at the
top of the C source file (in comments), where I have added a placeholder (this
description will not be marked but helps both of us keep track of what you have
changed). You may submit your code via the link in the assignment section of
the moodle page.
The code must compile and generate no warnings when compiled with
gcc -Wall -Werror -std=c99 -o assign3 assign3.c -lm
There are a finite number of bugs, but we will not tell you how many: make
sure that your code actually works by testing it rather than just looking for
obvious errors. Some errors may be repeated in multiple statements, or may
effect multiple lines of code.
1.1 How is it marked
Marks are given for the absence of each bug (in an otherwise correctly working
code) and for the code compiling correctly. You may lose marks in more than one
category for sufficiently severe problems. A correctly working code will contain
a stable and consistent finite difference method for solving the equations below.
1.2 Tips
1. The compiler is your friend. Start with the first warning/error messages
and work through them until there are none left.
2. Some bugs are hard to catch just by inspecting the code. Adding printf
statements is usually the easiest way to check that the code is doing what
you think it is: check the maths at the first timestep, for example.
3. You can often catch bugs in numerical code by looking at the output
graphically: does it do something strange at the boundaries? A variety of
tools (Matlab/matplotlib/Origin) exist which can take numerical output
and plot it for you. This is one of the things you should learn while doing
this assignment as it will be essential later on.
1
4. Learn how to use debuggers (gdb). Memory checking tools like valgrind
can help catch issues to do with reading/writing into an incorrect memory
location.
5. It is expected that you will allocate arrays on the heap and that the
allocated memory is released (freed) after use.
2 Specification
The code must use a simple, convergent, finite difference scheme to solve the
coupled differential equation for real-valued functions u and v with
∂u
∂t − K

2u
∂x2
− v(u + 1) = 0 (1)
∂v
∂t − K

2v
∂x2
+ u(v + 1) = 0 (2)
The equation is to be solved on a 1D x domain with x ∈ [0, length], as an
initial value problem. The domain length, number of grid points, length of time
over which to solve and the coefficients are defined at the start of the main.
The initial condition is u(x, 0) = 1.0 + sin(2πx/[length]), v(x, 0) = 0.0. The
first grid point is at x = 0, and the final point at x =[length]= (nx−1)×δx. The
function and its derivatives are periodic, so periodic boundary conditions should
be enforced, that is, u(x = 0) = u(x =[length]) and v(x = 0) = v(x =[length]).
The provided code may take a slightly different approach to periodic boundaries
than your used to so examine closely. Please note that at no point should the
values of u or v blow up to infinity.
2.1 Output
The code outputs simulation data at a fixed interval in time equal to the chosen
time step dt: it should output the initial values (at t=0), and at dt, 2dt, 3dt . . .
(but not necessarily the final value).
The time t, x coordinate, and u and v are written in that order in a single
output line for each gridpoint. Do not add extra comments/blank lines to
the output, which should contain only numbers! Remember that I will need
to read the numbers, so if it is output in an unreadable format then you’ll lose
marks.
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代做EF5070、代寫c/c++編程設計
  • 下一篇:代做指標 通達信回踩確認主圖指標代寫
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          亚洲第一在线| 国产精品免费视频xxxx| 亚洲一区二区三区在线视频| 国产综合久久久久影院| 国产精品成人观看视频免费| 久久久久国产精品一区二区| 亚洲视频碰碰| 99国产成+人+综合+亚洲欧美| 国一区二区在线观看| 欧美日韩中文另类| 欧美成人综合一区| 久久久亚洲欧洲日产国码αv | 久久电影一区| 一本大道av伊人久久综合| 原创国产精品91| 国内精品国语自产拍在线观看| 国产精品草莓在线免费观看| 欧美劲爆第一页| 免费亚洲一区| 久久永久免费| 美日韩精品免费| 在线观看一区欧美| 国产精品乱人伦一区二区| 欧美成人综合一区| 久久久综合免费视频| 欧美一区二区三区啪啪| 欧美一区观看| 久久黄色级2电影| 久久精品国产999大香线蕉| 午夜视频在线观看一区| 性视频1819p久久| 欧美一区日本一区韩国一区| 欧美在线不卡| 久久久水蜜桃| 欧美精品福利| 国产精品劲爆视频| 国产日韩在线亚洲字幕中文| 国产在线视频欧美| 亚洲国产欧美一区| 制服丝袜激情欧洲亚洲| 亚洲欧美在线高清| 久久精品国产第一区二区三区最新章节| 久久精品国产一区二区三区| 久久久www成人免费无遮挡大片 | 亚洲伊人第一页| 亚洲男人第一av网站| 久久精品99国产精品日本| 麻豆久久婷婷| 国产精品国产馆在线真实露脸| 国产日韩视频一区二区三区| 在线免费观看视频一区| 一本色道久久综合亚洲精品小说 | 国产啪精品视频| 在线日韩中文| 亚洲视频网在线直播| 久久久久久久久伊人| 欧美黄色aa电影| 国产精品永久免费在线| 亚洲高清不卡av| 亚洲欧美日韩网| 欧美不卡视频一区发布| 国产精品家教| 亚洲欧洲精品一区二区三区波多野1战4 | 欧美精品入口| 国产一区日韩一区| 亚洲视频电影在线| 牛夜精品久久久久久久99黑人| 国产精品免费网站在线观看| 亚洲电影免费| 久久精品免视看| 欧美性片在线观看| 亚洲人午夜精品免费| 久久精品国亚洲| 国产精品普通话对白| 99国产欧美久久久精品| 久久综合狠狠综合久久综青草 | 亚洲一区二区三区三| 久久综合影音| 国产一区白浆| 亚洲女性裸体视频| 欧美日韩精选| 亚洲国产一区二区精品专区| 欧美一区二区三区四区在线观看| 欧美色综合天天久久综合精品| 亚洲黄色免费网站| 久久久久九九视频| 国产精品一区二区三区成人| 一区二区三区www| 欧美日本国产在线| 亚洲日本欧美日韩高观看| 免费成人高清在线视频| 影音先锋日韩有码| 巨胸喷奶水www久久久免费动漫| 国产一区二区三区无遮挡| 午夜欧美大片免费观看| 国产精品久久久久久久9999 | 亚洲永久精品大片| 国产精品区二区三区日本| 亚洲一级电影| 国产精品综合不卡av| 久久精品123| 伊伊综合在线| 欧美精品亚洲一区二区在线播放| 亚洲三级电影在线观看| 欧美伦理91i| 亚洲影视在线播放| 国产日韩精品一区二区三区在线| 欧美在线看片a免费观看| 国产丝袜一区二区三区| 免费日韩av片| 在线视频日韩精品| 国产午夜精品一区理论片飘花| 久久久久久自在自线| 亚洲精品久久在线| 国产精品欧美久久| 久久九九国产精品怡红院| 亚洲国产精品va在线看黑人 | 夜夜嗨av一区二区三区四区| 国产精品久久久亚洲一区 | 1769国内精品视频在线播放| 欧美成人高清| 亚洲一区二区三区四区在线观看 | 在线看国产一区| 欧美日韩综合视频| 久久电影一区| 99av国产精品欲麻豆| 国产日韩在线一区| 欧美精品久久一区| 久久国产精品黑丝| 亚洲精品视频二区| 好吊日精品视频| 欧美视频在线观看一区二区| 久久精品动漫| 亚洲欧美日韩国产成人精品影院| 韩国三级在线一区| 国产精品欧美在线| 欧美福利视频在线| 久久国产精品亚洲77777| 在线亚洲高清视频| 亚洲电影免费在线观看| 国产视频观看一区| 欧美日韩在线一区| 欧美激情亚洲| 久久人人97超碰国产公开结果| 亚洲小视频在线观看| 亚洲精品乱码久久久久久按摩观| 国产日韩欧美在线| 国产精品日本精品| 欧美激情第一页xxx| 久久久天天操| 久久国产精彩视频| 亚洲砖区区免费| 亚洲视频一区在线| 9色国产精品| 亚洲精品乱码视频| 亚洲国产日韩在线一区模特| 激情av一区二区| 国产一区二区黄色| 国产欧美日韩综合| 国产精品久久久久天堂| 欧美亚洲成人精品| 欧美精品成人在线| 欧美久久视频| 欧美日韩精品在线观看| 欧美日韩1234| 欧美日韩另类国产亚洲欧美一级| 欧美黄色成人网| 欧美日韩亚洲视频| 国产精品大全| 国产农村妇女毛片精品久久麻豆| 国产精品久久久久三级| 国产精品女同互慰在线看| 国产免费成人av| 国产日韩亚洲欧美| 在线观看不卡| 日韩一本二本av| 亚洲一区在线播放| 欧美亚洲一区二区在线| 久久久久九九视频| 欧美福利小视频| 欧美日韩亚洲一区二区三区在线| 国产精品v欧美精品v日韩精品| 国产精品亚洲网站| 国产真实久久| 亚洲精品之草原avav久久| 亚洲视频你懂的| 久久成人在线| 欧美精品日韩综合在线| 国产精品国产a级| 好看不卡的中文字幕| 亚洲国产婷婷综合在线精品 | 亚洲在线观看视频网站| 午夜宅男欧美| 女人香蕉久久**毛片精品| 欧美日韩午夜视频在线观看| 国产日韩精品一区二区| 亚洲剧情一区二区| 亚洲欧美一区二区在线观看| 久久免费视频在线观看| 欧美日韩性生活视频|