- 博客(517)
- 资源 (20)
- 收藏
- 关注
原创 发现高铁上一个违反国家规定的地方
昨天坐高铁时发现高铁上的电源插座全都是这个样子的:这种类型的万能插座早在2010年就被国家禁用了:2010年6月1日起,替代1997年版旧国标的新国标《家用和类似用途插头插座(GB2099.3-2008)》正式实施,新国标明确规定禁止生产万能孔插座和两芯插座。GB2099.3-2008 是国家强制性标准,所有的生产厂家都必须遵守的。以前生产的也要求淘汰。希望铁总能够重视这个问题。不要知法犯法。
2016-09-10 18:18:56 2958
原创 常见的显示屏分辨率标准汇总
常见的显示屏分辨率标准汇总最近经常和各种分辨率的显示屏打交道,碰到各种分辨率的缩写,实在是记不住分不清。就做了个表格,将常见的分辨率列了出来。以备查用。 缩写 全称 分辨率 x:y VGA Video Graphics Array 640x480 4:3 SVGA Super VGA 800x600 4:3 QVGA Quarter VGA
2016-09-08 22:37:30 27216 1
原创 陶哲轩实分析 6.3 节习题试解
陶哲轩实分析 6.3 节习题试解6.3.1 设 an=1na_n = \frac{1}{n},证明 sup(an)∞n=1=1\sup(a_n)_{n=1}^{\infty} = 1,inf(an)∞n=1=0\inf(a_n)_{n=1}^{\infty} = 01≥an1 \geq a_n,所以 11 是 ana_n 的上界。 对任意的 x<1x < 1,都有 a1>xa_1 > x。所以 1
2016-09-04 15:21:24 2155 1
原创 Visual Stdio C++ 编译器、链接器常用命令行选项总结
以前使用 Visual Stdio 都是在 IDE 环境下。这两天编译 GSL 感觉用 IDE 环境特别不方便,所以就花了点时间简单学习了如何在命令行下使用 Visual Stdio C++ 编译器、连接器。我个人对 gcc 还是比较熟悉的,所以这里的各种用法都做了 gcc 的类比,这样也便于记忆。编译器 CLVisual Stdio 中的 C/C++ 编译器都是同一个,叫做 CL。下面表格列出了
2016-08-30 16:44:30 9001
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(8)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(8)gsl_ieee 模块这个模块缺少对 MSVC 平台的支持。我们需要自己写一个 fp_msvc.c 文件:/* ieee-utils/fp-msvc.c * * Copyright (C) 2015 LiYuan * * This program is free so
2016-08-29 21:31:26 3313 1
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(7)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(7)gsl_dht 模块项目文件:#-------------------------------------------------## Project created by QtCreator 2016-08-26T20:38:46##------------------
2016-08-29 20:09:04 1322
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(6)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(6)gsl_randist 模块多个文件中的 inline 需改为 __inline。项目文件如下:#-------------------------------------------------## Project created by QtCreator 2016-08-
2016-08-28 14:15:08 1585
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(5)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(5)gsl_blas 模块项目文件:#-------------------------------------------------## Project created by QtCreator 2016-08-26T20:38:46##-----------------
2016-08-27 20:46:32 1723
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(4)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(4)gsl_permutation 模块#-------------------------------------------------## Project created by QtCreator 2016-08-26T20:38:46##---------------
2016-08-27 18:21:01 1355
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(3)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(3)上一篇博客中介绍了如何生成 gsl_sys gsl_err gsl_complex 和 gsl_poly 模块。今天继续介绍如何生成 gsl 的其他部分。gsl_specfunc 模块这个模块内提供的是多种特殊函数。首先将所有 gsl_ 开头的头文件都拷贝到 include/gs
2016-08-27 13:34:44 1316
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(2)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(2)上一篇博客中介绍了如何生成 gslcblas.lib 和 gslcblas.dll。今天继续介绍如何生成 gsl 的其他部分。gsl 是一个比较大的库,直接将 gsl 的全部内容打包成一个库文件虽然是可行的,但是会很麻烦。因为,gsl 不同模块有许多相同名字的源文件。比如 vec
2016-08-27 10:06:17 1705
原创 Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(1)
Visual Stdio C++ 编译器 编译 (GSL) GNU Scientific Library 的方法介绍(1)以前一直都是用 MINGW 来编译 GSL 的,这样编译出来的 GSL 可以在 VS2013 及以下版本的 Visual Stdio 中使用。但是最近升级 Visual Stdio 到 Visual Stdio 2015 就发现问题了。编译应用程序时会报错误,提示有几个 exte
2016-08-26 21:54:20 4621 6
原创 陶哲轩实分析 6.2 节习题试解
陶哲轩实分析 6.2 节习题试解6.2.1 证明命题 6.2.5(a) 自反性 x≤xx \leq x 分类讨论: 当 x=∞x = \infty 时,有 ∞≤∞\infty \leq \infty 当 x∈Rx \in \mathbb R 时,有 x≤xx \leq x 当 x=−∞x = -\infty 时,有 −∞≤−∞-\infty \leq -\infty 所以 x∈R∗x \i
2016-07-27 00:55:15 1917
原创 陶哲轩实分析 6.1 节习题试解
陶哲轩实分析 6.1 节习题试解6.1.1 设 (an)∞n=0(a_n)_{n=0}^{\infty} 是一个实数列,对每个自然数 nn 都满足 an+1>ana_{n+1} > a_n,证明只要 nn 和 mm 是自然数,满足 m>nm > n,我们就有 am>ana_m > a_n数学归纳法: 当 m=n+1m = n + 1 时 am=an+1>ana_m = a_{n+1} > a_n
2016-07-25 12:08:07 3042 1
原创 陶哲轩实分析 5.6 节习题试解
陶哲轩实分析 5.6 节习题试解5.6.1 证明引理 5.6.6设 x,y>0x,y > 0 是正的实数,并设 m,n≥1m,n \geq 1 是正的整数。 (a)如果 y=x1/ny = x^{1/n},那么 yn=xy^n=x 证明: 首先,{z∈R:z≥0,zn≤x}\{z \in \mathbb{R}: z \geq 0, z^n \leq x\} 是非空集合,必然存在上确界,设这个上
2016-07-20 23:19:18 2763 4
原创 LeetCode 第 48 题(Rotate Image)
LeetCode 第 48 题(Rotate Image) You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place?将一个矩阵顺时针旋转 90 度。有两种
2016-07-17 15:04:36 1576
原创 不规则多边形区域的面积计算算法
不规则多边形区域的面积计算算法最近在写一个显微图像分析处理方面的程序,里面有一个功能是计算一个不规则的多边形区域的面积。因此花了点时间研究这个算法该如何写。研究了一番之后,算是找到了个比较靠谱的算法。这里就简单的写写自己的研究成果。解决这个问题,需要点线性代数和矢量运算方面的知识。以下图为例,设三角形的三个顶点为 a,b,ca, b, c,坐标分别为 (xa,ya),(xb,yb),(xc,yc)(
2016-07-15 21:20:01 27809 5
原创 Leetcode 第 374 题(Guess Number Higher or Lower)
Leetcode 第 374 题(Guess Number Higher or Lower) We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess
2016-07-14 22:29:26 2071
原创 LeetCode 第 73 题 (Set Matrix Zeroes)
LeetCode 第 73 题 (Set Matrix Zeroes) Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space? A straight forward sol
2016-07-13 19:29:32 2621
原创 LeetCode 第 372 题 (Super Pow)
LeetCode 第 72 题 (Super Pow) Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array. Example1: a = 2
2016-07-12 21:02:17 3102
原创 LeetCode 第 367 题 (Valid Perfect Square)
LeetCode 第 367 题 (Valid Perfect Square) Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library function su
2016-07-12 20:29:35 2512
原创 LeetCode 第 19 题 (Remove Nth Node From End of List)
LeetCode 第 19 题 (Remove Nth Node From End of List) Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2.
2016-07-07 22:33:50 2173
原创 LeetCode 第 292 题 (Nim Game)
LeetCode 第 292 题 (Nim Game) You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who remov
2016-07-05 13:58:13 1663
原创 LeetCode 第 67 题 (Add Binary)
LeetCode 第 67 题 (Add Binary) Given two binary strings, return their sum (also a binary string). For example, a = “11” b = “1” Return “100”.两个字符串,计算加法。这道题主要是考察对字符串操作的掌握情况。另外,加法要从低位算起,但是
2016-07-03 13:21:30 3027
原创 LeetCode 第 263 题 (Ugly Number)
LeetCode 第 263 题 (Ugly Number) Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 ar
2016-07-02 09:08:41 2608
原创 LeetCode 第 371 题 (Sum of Two Integers)
LeetCode 第 371 题 (Sum of Two Integers) Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Given a = 1 and b = 2, return 3.不用加减法计算两个整数的和。这道
2016-07-01 19:56:30 5813
原创 LeetCode 第 204 题 (Count Primes)
LeetCode 第 204 题 (Count Primes) Description: Count the number of prime numbers less than a non-negative number, n.计算小于 N 的素数的个数。这道题目比较简单。但是想提高计算效率与需要费点脑筋。判断一个数字 nn 是不是素数的简单方法是 用 nn 去除 2,3,4,…,n−1
2016-07-01 12:37:52 2065
原创 游戏手柄(JoyStick)编程学习笔记(1)
游戏手柄(JoyStick)编程学习笔记(1)最近我开发的一个项目中需要用手柄控制一个二维移动平台的运动,找了些工业用的操作杆,感觉都挺丑的。后来想到打游戏时用的游戏手柄就挺漂亮,就决定试试用游戏手柄作为控制手柄来用。上网查了查,在 WINDOWS 下编程控制游戏手柄比较主流的技术是用 DirectInput。如果不需要复杂的控制功能,也可以直接使用 WIN API (multimedia joys
2016-06-19 21:07:30 31475 5
原创 Fibonacci 数列及其计算方法
Fibonacci 数列及其计算方法斐波那契数列(Fibonacci sequence),又称黄金分割数列,这个数列最早是由印度数学家提出来的。不过更多的人学习到这个数列是因为意大利数学家列昂纳多·斐波那契(Leonardoda Fibonacci)和他的《Liber Abaci》一书。在这本书中,列昂纳多·斐波那契以兔子繁殖为例子引出了这个序列,因此这个序列又称为“兔子数列”。 这个序列的前几项
2016-06-17 23:02:36 38647 2
原创 陶哲轩实分析 5.5 节习题试解
陶哲轩实分析 5.5 节习题试解5.5.1 设 E\mathrm{E} 是 R\mathbb R 的一个非空子集,E\mathrm{E} 有最小上界 MM,它是个实数,即 M=sup(E)M = \sup(\mathrm{E})。令 −E-\mathrm{E} 为集合:−E={−x:x∈E}-E =\{-x: x \in \mathrm{E}\},证明 −M=inf(−E)-M = \inf(-\m
2016-06-12 19:56:28 4494 1
原创 陶哲轩实分析 5.4 节习题试解(5.4.5—5.4.8)
陶哲轩实分析 5.4 节习题试解5.4.5 给定任意两个实数 x<yx < y,可以找到一个比例数 qq,使得 x<q<yx < q < y反证法:假设不存在比例数 qq 满足 x<q<yx < q < y。 那么对任意的比例数 qq 都有 q≤xq \leq x 或 q≥yq \geq y。另外,由于 x<yx < y,所以存在比例数 ε>0\varepsilon >0 满足 ε<y−x\var
2016-06-11 18:00:35 2858 3
原创 陶哲轩实分析 4.4 节习题试解
陶哲轩实分析 4.4 节习题试解4.4.1 设 xx 是比例数,证明存在唯一的整数 nn 满足 n≤x<n+1n \leq x < n + 1对 xx 分情况讨论。 (1)x≥0x \geq 0 ,这时 x=a/bx = a/ b, a,ba, b 都是自然数,并且 b≠0b \neq 0。那么由欧几里德算法有: a=mb+ra = mb + r 其中 m,rm, r 为自然数,并且满足 0≤
2016-06-10 14:16:37 3949 2
原创 感知器学习笔记
感知器学习笔记感知器(Perceptron) 是一种用于线性可分数据集的二类分类器算法。这种算法的局限性很大:只能将数据分为 2 类数据必须是线性可分的虽然有这些局限,但是感知器是 ANN 和 SVM 的基础,理解了感知器的原理,对学习ANN 和 SVM 会有帮助,所以还是值得花些时间的。感知器可以表示为 f:RN→{−1,1}f: R^N \rightarrow \{-1, 1\} 的映射函
2016-06-09 21:11:19 12689
原创 陶哲轩实分析 4.3 节习题试解
陶哲轩实分析 4.3 节习题试解4.3.1 证明命题 4.3.3(a) 证明 |x|≥0|x| \geq 0,当 |x|=0|x| = 0 时, x=0x = 0。分情况讨论(1)x=0x = 0, |x|=0|x | =0 ,所以 |x|≥0|x| \geq 0 (2)x>0x > 0, |x|=x>0|x| = x > 0,所以 |x|≥0|x| \geq 0 (3)x<0x < 0, |x
2016-06-08 19:19:36 2718
原创 陶哲轩实分析 4.2 节习题试解
陶哲轩实分析 4.2 节习题试解4.2.1 证明比例数的定义是自反的、对称的以及传递的。(a) 证明自反性设 xx 是比例数,可表示为 a//ba//b 其中 aa 和 bb 是整数,b≠0b \neq 0 。 因为 ab=abab = ab 所以 x=xx = x(b)证明对称性 设 xx 是比例数,可表示为 a//ba//b 其中 aa 和 bb 是整数,b≠0b \neq 0。 yy 也
2016-06-02 19:46:56 3272
原创 陶哲轩实分析 4.1 节习题试解
陶哲轩实分析 4.1 节习题试解陶哲轩的书中定义整数时用的是一个比正常 “−-” 号长的符号,但是我没有找到如何输入那个符号,只能找到个类似的符号“⊖\ominus”,下面的证明中都用 “⊖\ominus” 来代替那个长长的“−-”。 这个 “⊖\ominus” 看起来还更漂亮些。4.1.1(1)证明整数相等是自反的。 设 a⊖ba \ominus b 是一个任意的整数。 因为 a+b=a+b
2016-05-24 21:16:35 3562 1
原创 陶哲轩实分析 5.3 节习题试解
陶哲轩实分析 5.3 节习题试解5.3.1x=LIMn→∞anx = \mathsf{LIM}_{n \rightarrow \infty} a_n,y=LIMn→∞bny = \mathsf{LIM}_{n \rightarrow \infty} b_n,z=LIMn→∞cnz = \mathsf{LIM}_{n \rightarrow \infty} c_n(1) 证明 x=xx = x∀ε>0
2016-05-23 13:44:51 2996 5
原创 陶哲轩实分析 5.2 节习题试解
陶哲轩实分析 5.2 节习题试解5.2.1设 (an)∞n=0(a_n)_{n=0}^{\infty} 是个 Cauchy 序列,(bn)∞n=0(b_n)_{n=0}^{\infty} 是与 (an)∞n=0(a_n)_{n=0}^{\infty} 等价的序列,证明 (bn)∞n=0(b_n)_{n=0}^{\infty} 也是 Cauchy 序列。证明:因为 (an)∞n=0(a_n)_{n=0
2016-05-22 14:41:10 1807
原创 陶哲轩实分析 5.1 节习题试解
陶哲轩实分析 5.1 节习题试解这一节只有一道习题。证明有理数 Cauchy 序列是有界的。证明:设 (an)∞n=0(a_n)_{n=0}^{\infty} 是个 Cauchy 序列。 那么根据 Cauchy 序列的定义,对于 ε=1\varepsilon = 1, 存在一个自然数 N≥0N \geq 0,当 i,j≥Ni, j \geq N 时,满足 |ai−aj|≤ε|a_i - a_j|
2016-05-22 14:39:52 1816
barcode-0.99-win32-64.zip
2020-06-07
qtmqtt-dev-modified.zip
2020-06-07
qtmqtt-qt5.12.4-msvc2017.zip
2020-06-07
PVsyst6_6_7_setup.msi
2020-02-15
Exposure Fusion.pdf
2020-02-08
VS2015 编译的 GSL 2.3
2017-02-19
VS2015 编译的 GSL(GNU Scientific Library)
2016-08-31
用于 Visual stdio 的 GSL 1.16 (GNU Scientific Libary)
2015-08-15
MISRA C:2004 中文版
2012-05-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人