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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                欧美乱妇一区二区三区不卡视频| 午夜精品在线看| 一区视频在线播放| 久久国产精品第一页| 国产一区二区三区美女| 在线免费av一区| 国产精品网曝门| 国产美女在线观看一区| 91精品国产全国免费观看| 亚洲精品久久嫩草网站秘色| 国产九色sp调教91| 日韩你懂的在线播放| 国产欧美日韩亚州综合| 日韩高清中文字幕一区| 在线精品观看国产| 亚洲永久免费视频| 色素色在线综合| 亚洲欧美日韩一区| aaa亚洲精品| 国产精品久久久久久久第一福利| 国产伦精品一区二区三区在线观看| 在线电影院国产精品| 香蕉成人啪国产精品视频综合网| 欧美日韩国产不卡| 午夜精彩视频在线观看不卡| 欧美视频中文字幕| 午夜国产精品一区| 777精品伊人久久久久大香线蕉| 亚洲电影在线播放| 欧美性xxxxxxxx| 日韩极品在线观看| 精品奇米国产一区二区三区| 狠狠色丁香九九婷婷综合五月| 日韩精品一区二区三区四区视频| 秋霞国产午夜精品免费视频| 欧美va在线播放| 国产精品一区一区三区| 欧美国产在线观看| 色婷婷激情久久| 亚洲第一搞黄网站| 日韩亚洲欧美在线| 成人美女视频在线看| 中文字幕五月欧美| 91国内精品野花午夜精品 | 国产精品丝袜91| 日韩av电影天堂| 精品国一区二区三区| 成人小视频在线观看| 亚洲另类春色国产| 欧美成人一区二区| 91官网在线观看| 国产尤物一区二区| 偷窥少妇高潮呻吟av久久免费| 中文字幕第一区二区| 91精品国产免费| 一本久久a久久免费精品不卡| 极品瑜伽女神91| 亚洲中国最大av网站| 国产精品久久网站| 久久久噜噜噜久久人人看| 欧美一级免费观看| 欧美视频自拍偷拍| 色婷婷综合久久久中文字幕| 国产999精品久久久久久绿帽| 日韩高清中文字幕一区| 亚洲一卡二卡三卡四卡| 久久久.com| 精品国产一二三| 日韩一区二区免费在线观看| 欧美另类久久久品| 欧美亚洲日本国产| 91网站在线播放| hitomi一区二区三区精品| 国产精品一二三四五| 极品少妇xxxx偷拍精品少妇| 日韩精品电影在线| 日韩 欧美一区二区三区| 亚洲影视在线播放| 日韩av在线播放中文字幕| 亚洲精品国产视频| 亚洲欧美另类小说视频| 亚洲国产精品成人综合| 国产视频在线观看一区二区三区| 欧美精品一区二区在线观看| 欧美成人欧美edvon| 欧美不卡123| 久久青草国产手机看片福利盒子 | jizzjizzjizz欧美| 成人va在线观看| 成人动漫一区二区在线| 不卡欧美aaaaa| 91最新地址在线播放| 色综合夜色一区| 欧洲一区二区三区在线| 欧美在线观看视频一区二区三区| 精品视频1区2区3区| 欧美丰满美乳xxx高潮www| 欧美日韩国产高清一区| 欧美一区二区免费视频| 久久综合九色综合欧美98| 国产喷白浆一区二区三区| 国产人妖乱国产精品人妖| 国产精品国产馆在线真实露脸 | 亚洲欧洲制服丝袜| 国产99久久精品| 成人h动漫精品一区二区| 91蜜桃视频在线| 欧美午夜不卡视频| 在线成人午夜影院| 久久久精品国产免大香伊 | 欧美成人aa大片| 久久久九九九九| 欧美激情一区二区三区不卡| 国产精品美女久久久久久2018| 亚洲精品菠萝久久久久久久| 亚洲国产精品久久久男人的天堂 | 亚洲色图一区二区三区| 亚洲一区二区三区爽爽爽爽爽| 亚洲午夜精品网| 国产中文一区二区三区| 99精品国产一区二区三区不卡| 欧美视频完全免费看| 久久―日本道色综合久久| 亚洲人成伊人成综合网小说| 石原莉奈在线亚洲二区| 极品美女销魂一区二区三区免费| 国产精品91xxx| 欧美日韩在线综合| 久久久久久久免费视频了| 亚洲一级二级在线| 国产一区二区女| 欧美日韩在线播| 国产欧美日韩视频在线观看| 亚洲r级在线视频| 国产成人av一区二区三区在线| 欧美在线一区二区三区| 精品国产91亚洲一区二区三区婷婷 | 精品国内片67194| 亚洲免费观看高清完整版在线观看 | 欧美日韩国产高清一区| 久久久久久久精| 亚洲国产精品一区二区久久恐怖片| 久久99国产精品成人| 欧美亚州韩日在线看免费版国语版| 精品久久久久香蕉网| 亚洲成人中文在线| 99久久婷婷国产| 精品日韩一区二区三区 | 精品免费99久久| 亚洲综合免费观看高清完整版 | 欧美精品久久99| 中文字幕欧美激情一区| 五月天亚洲精品| 色天使色偷偷av一区二区| 国产精品乱码妇女bbbb| 久久99精品久久久久久国产越南 | 国产成人综合网| 欧美卡1卡2卡| 色综合天天综合在线视频| 欧美中文字幕一区二区三区| 国产三级一区二区三区| 奇米888四色在线精品| 欧美日韩精品一区二区| 久久精品一区二区三区av| 亚洲成人资源网| 99久久精品免费看| 国产日韩精品一区二区三区 | 国产综合久久久久久鬼色| 99re热视频这里只精品| 国产精品网站在线播放| 国产成人av福利| 欧美国产1区2区| 99久久久久久99| 亚洲香肠在线观看| 欧美高清视频不卡网| 午夜视频在线观看一区二区 | 国产精品久久久久久久久搜平片| 亚洲一二三四在线观看| 日韩亚洲欧美综合| 国产精品主播直播| 亚洲一区二区黄色| 国产精品水嫩水嫩| aaa欧美大片| 久久久欧美精品sm网站| 欧美嫩在线观看| 精品奇米国产一区二区三区| 一区二区三区小说| 91久久精品日日躁夜夜躁欧美| 亚洲欧美色一区| www.成人在线| 亚洲男人天堂av| 欧美四级电影在线观看| 性欧美疯狂xxxxbbbb| 日韩一级在线观看| 国产在线观看一区二区| 国产欧美日韩亚州综合| 99久久精品免费看国产免费软件| 亚洲精品乱码久久久久久黑人| 欧美视频一二三区| 日本不卡一区二区三区|