随笔分类 -  数学

好看的函数图
摘要:1. 鸡蛋型解析式:x = 0.7*cos(t/4)*sin(t)y = cos(t)图像:python程序:import numpy as npimport matplotlib.pyplot as pltt = np.linspace(-np.pi, np.pi, 100)x = 0.7 * np.cos(t/4) * np.sin(t)y = -np.cos(t)plt.plot(x,y)plt.xlim(-1,1)plt.ylim(-1,1)plt.show()未完待续 阅读全文

posted @ 2013-09-16 19:01 赛欧拉 阅读(1694) 评论(0) 推荐(0)

数论
摘要:#pragma warning (disable: 4786)#include#include#include#include#include#includeusing namespace std;#ifdef _WIN32typedef unsigned __int64 UINT64;#eliftypedef unsigned long long UINT64;#endif//1000以内素数表UINT64 gPrimeTable1000[] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97, 阅读全文

posted @ 2012-11-18 11:59 赛欧拉 阅读(180) 评论(0) 推荐(0)

Fibonacci数的性质
摘要: 阅读全文

posted @ 2012-11-16 21:37 赛欧拉 阅读(112) 评论(0) 推荐(0)

Dijkstra算法
摘要:double dijkstra(int src, int dest, vector& path, vector >& adjT){ if (src = adjT.size() || dest = adjT.size()) return -1; map previous; //记录最短路径上每个点的前驱点 set V; //未计算的点 map distance; //记录src到各顶点的距离 int i; for (i=0; i::const_iterator it = adjT[src].find(i); if (it != ad... 阅读全文

posted @ 2012-11-03 12:35 赛欧拉 阅读(196) 评论(0) 推荐(0)

Mandelbrot
摘要:// MandelbrotDlg.cpp : implementation file//#include "stdafx.h"#include "Mandelbrot.h"#include "MandelbrotDlg.h"#include #ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif////////////////////////////////////////////////////////// 阅读全文

posted @ 2012-10-19 00:10 赛欧拉 阅读(213) 评论(0) 推荐(0)

群论
该文被密码保护。

posted @ 2012-09-22 19:51 赛欧拉 阅读(2) 评论(0) 推荐(0)