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;">

                91精品国产免费| 3d成人动漫网站| 91在线观看高清| 欧美电影免费观看完整版 | 午夜精品福利一区二区三区av| 久久一二三国产| 国产乱码精品一区二区三区av| 久久久不卡影院| 欧美人牲a欧美精品| 成人久久久精品乱码一区二区三区 | 亚洲欧美激情视频在线观看一区二区三区 | 亚洲三级小视频| 国产99一区视频免费| 国产午夜三级一区二区三| 国精产品一区一区三区mba视频| 67194成人在线观看| 婷婷综合另类小说色区| 777亚洲妇女| 国产成人在线免费观看| 亚洲精品国产无套在线观| 欧美乱妇15p| 99久久免费精品| 午夜精品久久久久久久久| 精品少妇一区二区三区在线播放 | 久久久久久电影| 色综合一区二区三区| 免费三级欧美电影| 亚洲欧美日韩久久| 国产综合成人久久大片91| 久久国产乱子精品免费女| 精品乱人伦一区二区三区| 中文字幕亚洲视频| 国产精品传媒入口麻豆| 日韩亚洲欧美一区| 色婷婷综合久久久久中文一区二区 | 国产成人综合亚洲网站| 在线一区二区三区| 91福利区一区二区三区| 国产欧美日韩另类一区| 日韩精品一区二区三区视频在线观看| 色综合av在线| 国产精品每日更新在线播放网址| 美女网站色91| 欧美在线视频日韩| 91国偷自产一区二区开放时间| 国产中文字幕精品| 久久久久久久久久电影| 国产精品亚洲专一区二区三区 | 91视频免费看| 极品尤物av久久免费看| 国产一区二区在线电影| 天天av天天翘天天综合网| 久久久99精品免费观看不卡| 欧美午夜精品一区二区三区 | 狠狠色狠狠色综合系列| 国产精品毛片久久久久久| 日韩欧美国产一区在线观看| 91精品国产综合久久久久久久 | 欧美日韩在线一区二区| 欧美理论片在线| 日韩欧美国产系列| 久久久不卡网国产精品一区| www.欧美精品一二区| 欧美日韩在线播放三区| 精品嫩草影院久久| 亚洲欧美日韩国产一区二区三区| 亚洲日本一区二区| 青青国产91久久久久久| 国产成人综合自拍| 欧美性感一区二区三区| 国产日韩亚洲欧美综合| 亚洲成人动漫在线观看| 成人动漫视频在线| 日韩一区二区三区电影 | 在线播放91灌醉迷j高跟美女| 久久婷婷国产综合国色天香| 亚洲美女免费视频| 成人黄色综合网站| 久久久精品人体av艺术| 日韩欧美中文字幕公布| 欧美日本乱大交xxxxx| 色婷婷久久久综合中文字幕| 成人av中文字幕| 国产成人在线视频免费播放| 久久9热精品视频| 久久99精品国产.久久久久久| 亚洲一区二区中文在线| 欧美精品久久久久久久久老牛影院| 成人免费一区二区三区视频| 色婷婷精品久久二区二区蜜臂av | 欧美日韩国产综合久久 | 国产精品国产三级国产aⅴ无密码| 国产91精品露脸国语对白| 亚洲欧洲成人自拍| 一本色道久久加勒比精品| 一区二区三区视频在线观看| 欧美亚洲国产一区二区三区| 亚洲成人精品一区二区| 久久精品一区二区三区四区| 色偷偷一区二区三区| 日本va欧美va精品发布| 中文字幕免费不卡在线| 欧美性一二三区| 欧美日韩一区三区| 精品欧美一区二区三区精品久久 | 欧美羞羞免费网站| 天天影视色香欲综合网老头| 欧美高清你懂得| 免费美女久久99| 亚洲人精品午夜| 久久免费视频色| 久久久综合精品| 精品精品国产高清一毛片一天堂| 91丨porny丨在线| 9i看片成人免费高清| jiyouzz国产精品久久| 丁香婷婷综合五月| gogo大胆日本视频一区| 成人综合在线视频| 99久久综合国产精品| 日韩福利视频网| 一区二区在线看| 亚洲人成网站精品片在线观看| 欧美激情一区在线| 一二三四社区欧美黄| 亚洲成人午夜影院| 亚欧色一区w666天堂| 午夜电影网一区| 韩国女主播成人在线| 成人av电影在线| 懂色av一区二区夜夜嗨| 国产一区免费电影| 国产传媒欧美日韩成人| 91在线观看污| wwwwww.欧美系列| 天堂va蜜桃一区二区三区| www.在线成人| 欧美高清视频一二三区| 亚洲精品日韩综合观看成人91| 日本v片在线高清不卡在线观看| 国产精品系列在线播放| 欧美系列在线观看| 亚洲色图第一区| 日本成人在线电影网| 精品成人在线观看| 亚洲一级在线观看| 91久久精品网| 亚洲品质自拍视频网站| a4yy欧美一区二区三区| 亚洲色图视频网站| 色综合久久久久| 欧美区在线观看| 老色鬼精品视频在线观看播放| 欧美久久一二区| 韩日精品视频一区| 日韩免费视频一区二区| 亚洲视频一二三| 一区二区三区国产精品| 亚洲欧洲国产专区| av午夜精品一区二区三区| 国产精品亲子乱子伦xxxx裸| 色天天综合久久久久综合片| 日本不卡视频在线观看| 欧美国产成人精品| 91精品国产日韩91久久久久久| 国产麻豆精品theporn| 亚洲综合图片区| 欧美精品在线观看一区二区| 高清不卡一区二区| 日本不卡一区二区三区高清视频| 精品精品国产高清a毛片牛牛| av资源网一区| 国产精品一区二区久久精品爱涩| 国产精品久久久久久久久免费丝袜 | 久久久噜噜噜久噜久久综合| 国产在线精品一区二区三区不卡 | 亚洲综合在线观看视频| 欧美日韩电影在线| av午夜精品一区二区三区| 性久久久久久久| 中文字幕一区二区在线观看| 91精品午夜视频| 成人开心网精品视频| 天堂在线一区二区| 亚洲午夜视频在线| 精品国产免费人成在线观看| 在线观看不卡视频| 色88888久久久久久影院野外| 美腿丝袜一区二区三区| 久久精品国产网站| 久久超级碰视频| 精品一区二区成人精品| 激情文学综合插| 国产精品888| 成人免费毛片片v| 看电视剧不卡顿的网站| 日韩av一区二区在线影视| 亚洲自拍偷拍麻豆| 亚洲狼人国产精品| 91蝌蚪porny|