-
大小: 1.78MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-10-24
- 語(yǔ)言: C/C++
- 標(biāo)簽:
資源簡(jiǎn)介
《矩陣與數(shù)值分析》上機(jī)作業(yè),包括采用Newton迭代法求非線性方程的根的源代碼和用改進(jìn)Newton法求解帶重根的多項(xiàng)式零點(diǎn)源代碼。采用C語(yǔ)言編程,程序簡(jiǎn)單實(shí)用,有運(yùn)行結(jié)果,修改方程系數(shù)即可求解不同方程組根。

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“Newton.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????577598??2010-12-30?18:08??Newton\Debug\Newton.exe
?????文件?????810416??2010-12-30?18:08??Newton\Debug\Newton.ilk
?????文件?????257687??2010-12-30?18:08??Newton\Debug\Newton.obj
?????文件????2022000??2010-12-30?18:08??Newton\Debug\Newton.pch
?????文件????1115136??2010-12-30?18:08??Newton\Debug\Newton.pdb
?????文件???????5656??2010-12-11?12:47??Newton\Debug\Newton.res
?????文件??????91136??2010-12-30?18:08??Newton\Debug\vc60.idb
?????文件?????126976??2010-12-30?18:08??Newton\Debug\vc60.pdb
?????文件???????1497??2010-12-11?12:25??Newton\MainFrm.cpp
?????文件???????1421??2010-12-11?12:25??Newton\MainFrm.h
?????文件???????1788??2010-12-11?12:25??Newton\Newton.clw
?????文件????????983??2010-12-30?17:03??Newton\Newton.cpp
?????文件???????3401??2010-12-30?18:08??Newton\Newton.dsp
?????文件????????537??2010-12-30?18:09??Newton\Newton.dsw
?????文件???????1356??2010-12-11?12:25??Newton\Newton.h
?????文件??????58368??2010-12-30?18:09??Newton\Newton.ncb
?????文件??????48640??2010-12-30?18:09??Newton\Newton.opt
?????文件????????748??2010-12-30?18:08??Newton\Newton.plg
?????文件???????9010??2010-12-11?12:25??Newton\Newton.rc
?????文件???????1742??2010-12-11?12:25??Newton\NewtonDoc.cpp
?????文件???????1475??2010-12-11?12:25??Newton\NewtonDoc.h
?????文件???????1903??2010-12-11?12:25??Newton\NewtonView.cpp
?????文件???????1718??2010-12-11?12:25??Newton\NewtonView.h
?????文件???????3996??2010-12-11?12:25??Newton\ReadMe.txt
?????文件???????1078??2010-12-11?12:25??Newton\res\Newton.ico
?????文件????????398??2010-12-11?12:25??Newton\res\Newton.rc2
?????文件???????1078??2010-12-11?12:25??Newton\res\NewtonDoc.ico
?????文件????????464??2010-12-11?12:25??Newton\Resource.h
?????文件????????208??2010-12-11?12:25??Newton\StdAfx.cpp
?????文件???????1054??2010-12-11?12:25??Newton\StdAfx.h
............此處省略38個(gè)文件信息
評(píng)論
共有 條評(píng)論