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

          国产伪娘ts一区| 久久久久久久久久久久久久一区| 国产精品啊啊啊| 久久久久久久综合狠狠综合| 99视频日韩| 精品av久久久久电影| 欧美日韩综合视频| 久久综合九色综合欧美就去吻| 一区二区三区av| 亚洲国产cao| 国产亚洲aⅴaaaaaa毛片| 欧美日本国产一区| 欧美大秀在线观看| 久久精品国产91精品亚洲| 亚洲一区二区三区乱码aⅴ| 亚洲精品国产精品国自产观看| 国产午夜久久| 国产精品一区二区欧美| 欧美午夜不卡在线观看免费 | 久久欧美中文字幕| 亚洲综合色激情五月| 亚洲午夜高清视频| 夜夜嗨av色综合久久久综合网| 1769国产精品| 在线看日韩欧美| 亚洲二区视频| 亚洲狠狠丁香婷婷综合久久久| 国产在线欧美| 一区二区视频在线观看| 尤物yw午夜国产精品视频| 黄色小说综合网站| 亚洲国产欧美精品| 亚洲人成在线观看一区二区| 亚洲日本视频| 一区二区高清在线| 亚洲女同精品视频| 久久精品国产一区二区三区免费看| 午夜在线一区| 久久久精品性| 欧美精品不卡| 国产精品久久久久久户外露出| 国产精品乱子久久久久| 国内精品模特av私拍在线观看| 国内伊人久久久久久网站视频 | 精品1区2区3区4区| 永久555www成人免费| 亚洲电影有码| 亚洲欧洲在线一区| 亚洲男女自偷自拍图片另类| 欧美一区二区成人| 女人香蕉久久**毛片精品| 欧美日韩国产首页在线观看| 国产精品色一区二区三区| 精品va天堂亚洲国产| 日韩一二在线观看| 亚洲欧美一区二区在线观看| 久久一区二区三区av| 欧美午夜不卡影院在线观看完整版免费| 欧美性色视频在线| 在线观看精品视频| 国产精品视频久久一区| 亚洲电影av在线| 亚洲免费视频网站| 米奇777在线欧美播放| 欧美午夜欧美| 最新国产成人在线观看| 先锋资源久久| 欧美视频在线观看免费| 伊伊综合在线| 午夜精品久久久久久久久久久| 免费日韩成人| 国产一区白浆| 亚洲欧美在线网| 欧美日韩专区在线| 亚洲国产综合视频在线观看| 欧美伊人影院| 国产欧美精品日韩精品| 日韩视频中午一区| 蜜臀a∨国产成人精品 | 国产亚洲人成网站在线观看| 一区二区三区鲁丝不卡| 欧美电影在线播放| 国产一区二区丝袜高跟鞋图片| 亚洲无线观看| 欧美日韩精品国产| 亚洲欧洲日夜超级视频| 欧美77777| 亚洲第一在线综合在线| 久久久久国产精品午夜一区| 国产欧美午夜| 性色一区二区三区| 国产欧美成人| 久久国产精品久久w女人spa| 国产精品私人影院| 午夜日韩av| 国产欧美一区二区白浆黑人| 亚洲欧美激情视频| 国产精品日本| 久久av红桃一区二区小说| 国产欧美日韩不卡| 久久久青草婷婷精品综合日韩| 国产日韩在线亚洲字幕中文| 性伦欧美刺激片在线观看| 国产精品久久久久久久电影 | 国产精品美女久久久久久免费| 亚洲免费av观看| 国产精品福利在线观看网址| 亚洲自拍偷拍色片视频| 国产精品视频999| 欧美在线视频一区二区三区| 精品二区视频| 欧美国产欧美亚洲国产日韩mv天天看完整 | 国产在线高清精品| 久久人人爽人人| 99国内精品久久| 国产精品萝li| 麻豆成人综合网| 一区二区三区视频在线| 国产日韩欧美在线播放| 久久这里只有精品视频首页| 最新国产拍偷乱拍精品| 欧美视频免费看| 久久久精品视频成人| 亚洲精品在线免费| 国产精品亚洲综合天堂夜夜| 久久av资源网| 99国产精品自拍| 国产一区二区在线观看免费播放| 狂野欧美性猛交xxxx巴西| 亚洲视频精选| 在线精品国产欧美| 国产精品久久久久免费a∨大胸| 久久成人免费网| 艳女tv在线观看国产一区| 国产日产欧美一区| 欧美日韩亚洲视频| 另类亚洲自拍| 欧美一区日本一区韩国一区| 亚洲精品裸体| 黄色一区二区在线观看| 欧美午夜a级限制福利片| 欧美亚洲尤物久久| 日韩视频在线观看| 尤物yw午夜国产精品视频| 国产精品入口麻豆原神| 欧美精品一区二区三区一线天视频 | 欧美激情一区在线| 久久久精品一区| 亚洲欧美日本日韩| 亚洲视频一区二区在线观看| 樱桃成人精品视频在线播放| 国产精品欧美久久久久无广告| 欧美成人中文字幕在线| 久久久久九九九九| 久久精品二区| 性欧美8khd高清极品| 中文国产成人精品久久一| 91久久久久久国产精品| 亚洲国产小视频在线观看| 狠狠爱www人成狠狠爱综合网| 国产欧美精品一区aⅴ影院| 国产精品国产三级国产专播品爱网 | 亚洲欧美不卡| 亚洲视频免费看| 亚洲自拍偷拍一区| 在线一区二区三区四区| 一本色道久久综合亚洲精品婷婷| 最新亚洲电影| 亚洲免费不卡| 一区二区三区视频在线观看 | 亚洲欧美一区二区三区久久| 亚洲午夜一区二区| 亚洲欧美日韩精品久久奇米色影视| 中文欧美字幕免费| 亚洲欧美日韩国产中文| 欧美亚洲综合网| 欧美一区二区三区的| 久久激情综合| 欧美mv日韩mv国产网站| 欧美插天视频在线播放| 欧美日韩精品免费观看视频完整| 欧美激情1区2区3区| 欧美日韩免费一区二区三区| 国产精品美女xx| 韩国一区电影| 亚洲国产另类精品专区| 日韩视频久久| 午夜精品www| 免费不卡在线观看| 欧美欧美午夜aⅴ在线观看| 国产精品免费一区二区三区在线观看 | 欧美1区2区3区| 国产精品成人午夜| 国产综合色在线视频区| 亚洲精品四区| 欧美在线黄色| 欧美黄色网络| 国产最新精品精品你懂的| 亚洲毛片av在线| 久久国内精品视频|