由买买提看人间百态

topics

全部话题 - 话题: definity
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
c******n
发帖数: 4965
1
来自主题: Java版 - aspectJ + ant , how to define task?
the aspectJ docs refer to "aspectJtools.jar", but this jar is only present
in aspectj 1.1, and seems to be no longer present,
so the docs are out-dated.
but how can I define an ant task for aspectj??
I can't use eclipse build only because we need an ant task for automatic
builds
thanks
t*******l
发帖数: 3662
2
来自主题: Programming版 - c++ define 一问

macros are inline code. i.e. whatever you define in your macros,
that will be inserted into your code during compiling. it may
be useful for testing and debugging by conditional compiling.
i, n);}
yy
发帖数: 45
3
来自主题: Programming版 - c++ define 一问
如果我有一个assert function 定义在头文件中,
这个 define 的 assert 是不是会覆盖头文件的那个?
谢谢
g*****g
发帖数: 34805
4
来自主题: Programming版 - c++ define 一问
stay away from this kind of define in C++,
you can use const for constant and inline for function.
n*****g
发帖数: 274
5
来自主题: Programming版 - c++ define question
我想定义一个数组的默认大小为常量10,
#define DEFAULT 10;
然后
myArray = new int[DEFAULT];
结果编译的时候总是显示出错,
然后把上一行改为
myArray = new int[10];
编译运行就没有问题了。
可是这样在扩展数组默认大小时就需要更改很多。
怎么样能够定义一个常量呢?
t****n
发帖数: 15
6
来自主题: Programming版 - How to define a data type of 1 bit size?
If c/c++, use bit field. Or use vector if you need to define an array.
S*******s
发帖数: 13043
7
来自主题: Programming版 - where to define my template function
in my project, I have following 3 files
//t.h
#include
template
myFunc (std::vector& var){
....
}
//a.cpp
#include "t.h"
void funcA(){
std::vector a;
std::vector b;
myFunc(a);
myFunc(b);
}
void funcB();
int main(){
funcA();
funcB();
}
//b.cpp
#include "t.h"
void funcB(){
std::vector a;
std::vector b;
myFunc(a);
myFunc(b);
}
if I build it, I'll get an error that myFunc(std::vector&) defined
twice.
if I manage them in di
t****t
发帖数: 6806
8
来自主题: Programming版 - 两个C的#define问题
you may use ## to concatenate 2 symbol
e.g.
#define X(x) x##1
int X(a);
for second, i don't think you can do that
c********x
发帖数: 84
9
来自主题: Programming版 - a string define question (c++)

+
不然编译器会当成普通数据类型处理的.
hehe, let me put in this way:
1. string + char[] // + is defined in lib
2. char[] + char[] // no way.
i**p
发帖数: 902
10
How can I define a reference to ensure it will always reference the same
object but you can use the reference to modify the object's values?
The follow FAQ says a reference is always const. Do you agree it?
http://www.parashift.com/c++-faq-lite/const-correctness.html
...
[18.7] Does "Fred& const x" make any sense?
No, it is nonsense.
To find out what the above declaration means, you have to read it right-to-
left. Thus "Fred& const x" means "x is a const reference to a Fred". But
that is redunda
i**p
发帖数: 902
11
Now let us back to my original question.
How can I define a reference to ensure it will always reference the same
object but you can use the reference to modify the object's values?
So according to our analysis, we don't need to do anything special but just
declare a simple reference like this,
base& ref_1 = b;
Am I right?
h**o
发帖数: 548
12
来自主题: Programming版 - 关于#define 和 struct
假设定义:
typedef struct _icap_flags
{
unsigned int initialized;
......
} icap_flags_t;
typedef struct _Node
{
icap_flags_t icap_flags;
......
} Node;
Node node;
#define icap_initialized icap_flags.initialized
请问能这样用吗?
Node.icap_initialized
还是只能用Node.icap_flags.initialized?
k**f
发帖数: 372
13
来自主题: Programming版 - 关于#define 和 struct
Tried it with cpp (the C/C++ preprocessor program) that comes with gcc.
#define icap_initialized icap_flags.initialized
The macro definition stops at '.', so your stuff does not work.
s*****y
发帖数: 1
14
I need to get all data types and size out of a big elf object file,
including those defined but not being used? Anyone knows a way to do that?
I am doing research on dwarfdump, which might be able get those info out.
Anybody has experience on that?
Thanks.
r****t
发帖数: 10904
15
来自主题: Programming版 - 基础问题:在header里面define function
在 binary 里面 define 只能一次。 declare 的东西编译器不为其生成 binary 所以可以多
次, 比如 template 这种。
你可能和我一样没有系统学过 c++,所以语言上不准确,建议拿本书看看,把名词拿准了。
没有“不是template的function”, 也没有 “用了 template的function”。名称拿准
了就不会有上面这些问题。
t****t
发帖数: 6806
16
不对
you need this construction
#ifndef XXXX
#define XXXX
// your .h file goes here
#endif
d****n
发帖数: 1637
17
来自主题: Programming版 - 请教怎么用#define实现如下的功能
I am not sure what you need.
but by my understand ~
#include
#include
#include
#define transfer(x) ({char *tmp=(x); \
int i,sz=strlen(tmp);\
char *ret=(char *)malloc(sizeof(char)*sz*2);\
for(i=0;i ret[2*i]=tmp[i];\
ret[2*i+1]='\0';\
}\
ret;})
int main(){
char *t;
t=transfer("abc") ;
int i;
for(i... 阅读全帖
k****t
发帖数: 2288
18
来自主题: Programming版 - 请教怎么用#define实现如下的功能
sure!
我直接用你的define code编译的。还特意在\后回车到下一行,以确保\后面没有空格。
编译错都是指向t=transfer("abc"),这一行。说syntax error,missing ')' before '
}';
k****t
发帖数: 2288
19
来自主题: Programming版 - 请教怎么用#define实现如下的功能
你这是可以运行,但是没有达到我的要求:
我希望是这样的:
比如
char t[]={trans(hello,4)} 的结果是这样的char t[]={'h','\0','e','\0','l','
\0','l','\0','o','\0'},这样size是double的,但是你的运行的结果是:
char t[] = {'h','e','l','l','o'},size只有5.
我后来试验了在后面直接加'\0'就可以了。
比如:
#define trans1(x) #x[0],'\0'
多谢~~~
包子送上~~~~
e******o
发帖数: 757
20
来自主题: Programming版 - 问一个defining array 的问题
当要define 一个array 的时候, C++ primer是这样写的: The dimension must be a
constant expression whose value is greater than or equal one. 但我发现网上
好多代码都不是这样的,但是能编译通过。
比如一个function,
int largestRetangleArea( vector &height)
{
int area[height.size()];
//some operations;
//return a value;
}
编译是也能通过。请问一下为什么呢?
谢谢。
c*******v
发帖数: 2599
21
来自主题: Programming版 - 不要在well defined的问题上浪费时间
我的意思不是说well defined问题不可能让人致富或者有
更高的社会地位什么的。(但那样价值观必改。那就丧失一个人现在认为的"意义"
了.)
我仍然相信技术是可以用来寻找意义的。就是说可以通过技术
找到社会和历史这个理性架构背后的东西。
或者说,我相信技术可以找到可以言说,可以scale out
和 scale up出去的生命的意义。所以我这个思维其实有些像
艺术家或者诗人。但是艺术家不讲究scale out/up,无法济世救人。
假如一个人的目标是后面两者的话。必不可能行走于别人设定的赛道。
(没有吹嘘的意思)我高二时候数学和物理竞赛就全省前几名了。
那以后就没用脑子参与过任何一个考试。
----------------------------
我的看法更准确的说,是:
假如一个人不放弃通过技术的道路对意义的追索。
那迟早会走到边界,独自行走的。
无非是早晚而已。从CS这块。我相信本版几个脑子里有
了自己的单独的成熟的计算模型的人,可能都有同感摸到了一个边界。
(我不是说社会地位上不去,钱少这些东西)
别人给的,或者历史社会形成的form都是很有限的。
一个有天分的人,干了20... 阅读全帖
l**p
发帖数: 474
22
来自主题: TeX版 - How to define a variable in latex?
for example, define v = true.
a****d
发帖数: 1919
23
最新一期的Nature paper,reprogramming from fibroblasts to functional neurons
. 一样的套路,不过还是感觉很crazy!
Direct conversion of fibroblasts to functional neurons by defined factors
Thomas Vierbuchen1,2, Austin Ostermeier1,2, Zhiping P. Pang3, Yuko Kokubu1,
Thomas C. Südhof3,4 & Marius Wernig1,2
Abstract
Cellular differentiation and lineage commitment are considered to be robust
and irreversible processes during development. Recent work has shown that
mouse and human fibroblasts can be reprogrammed to a plurip
h******y
发帖数: 1374
24
Induction of functional hepatocyte-like cells from mouse fibroblasts by
defined factors
Nature (2011) doi:10.1038/nature10116
Received 23 August 2010 Accepted 15 April 2011 Published online 11 May 2011
Affiliations
Laboratory of Molecular Cell Biology, Institute of Biochemistry and Cell
Biology, Shanghai Institutes for
Biological Sciences, Chinese Academy for Sciences, Yueyang Road 320, 200031
Shanghai, China
Pengyu Huang, Zhiying He, Shuyi Ji, Huawang Sun, Changcheng Liu, Xin Wang &
Lijian Hui
... 阅读全帖
M*P
发帖数: 6456
25
http://www.bizjournals.com/triangle/news/2014/07/28/duke-to-hel
Tech giant Google will continue its foray into health care and has turned to
Duke University for help.
Google (Nasdaq: GOOG) will look to define health, or establish a basic
understanding of a healthy physiology, in what the Wall Street Journal
called“what may be its most ambitious and difficult science project ever.”
Basically, Google will collect data from healthy volunteers and try to
determine what a healthy person looks like. T... 阅读全帖
w**********g
发帖数: 687
26
来自主题: Physics版 - how to define "spin degree of freedom"?
Please let me know how to define "spin degree of freedom". or which book to
check the definition.
Thank you
s******1
发帖数: 239
27
来自主题: PoliticalScience版 - Rescue is a defining moment for Chinese politics
http://www.nytimes.com/2008/05/14/world/asia/14response.html?hp
In its zigzagging pursuit of a more nimble and effective form of
authoritarian rule, China may be having a defining moment. Its harsh
crackdown on discontented Tibetans bore the hallmarks of Beijing’s hard-
line impulses. But its decision on Tuesday to scale back the elaborate
domestic leg of the Olympic torch relay — after a flood of Internet
protests calling it insensitive — is a sign that officials are not deaf to
public sentimen
g*****a
发帖数: 340
28
macro不就是user defined function 实现的么?自动生成的代码而已
我写自动执行程序的时候一般就先根据基本操作录制一段macro然后在进去修改。
n*****r
发帖数: 159
29
if you want user defined function accessible within sheet, you have to make
it to be a macro, either write in VBA or use automation.
Macro recording is just to let Excel write VBA code for you.
c*****t
发帖数: 1879
30
来自主题: Science版 - Re: how to define "life"

right. according to this definition, viruses are not living.
There is no such definition as intelligent life. Need to define
intelligence first.
q**i
发帖数: 174
31
来自主题: Science版 - Re: how to define "life"

if you define metabolism as a way to consume / need for energy, wouldn't
that make those computer viruses a form of life?
to learn, one needs memory, ability to generalize and reason. the first
is easily done by a computer, and the 2nd/3rd could be done with aid
of artificial intelligence.
the reason I asked the whole thing was a Star Trek eposode where the
starship encountered a non-carbon based life form that can
travel all by itself. After all, we have life forms on the earth
that do not rel
s****i
发帖数: 197
32
请问python sklearn nearest neighbor user defined metric具体语句该怎样写的??
像是
nbrs = NearestNeighbors(n_neighbors=4,algorithm='auto',metric='pyfunc').fit(
B)
distances, indices = nbrs.kneighbors(B)
这样?但是这个会给我一个error
ValueError: Unknown Distance Metric: pyfunc
但是从sklearn的document上看这东西应该是支持自定义distance的阿??
我知道这个问题真的很2大家b4我把。。。
===============================================
其实就一关键字。。。
nbrs = NearestNeighbors(n_neighbors=4, algorithm='ball_tree',metric='pyfunc'
,func=mydist).fit(A)
distances, indices = nbrs.k... 阅读全帖
d**********o
发帖数: 1321
33
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw3 & hw3b 最终结果
贴一个自己 hw3b 的 match 结果让小伙伴们感受一下我们作业需要的结果是什么样子
的。
如果是同专业的小伙伴,最后拷贝到编辑器中仔细看一下,这个网页因为宽度有限,让
并排两列的比较呈现出来的很变形。
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
makefile
scanType.h
symtab.h
symtab.c
20131116163236-(me~~)-CS445-F13-A3B.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
... 阅读全帖
d**********o
发帖数: 1321
34
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw3b deadline前版本
这里我也先公开承认一下自己早前犯过的错误,在这个楼的第 14 页、第 265 楼,我
有贴出自己的hw3b,但现在我必须向亲爱的读者一一您公开道歉。因为当时因为着急,
我没能找到hw3b deadline前的版本,就把这次作业后来的最终版本(也就是那个楼贴
出来的,只剩下ReturnK、CompoundK两条小尾巴的版本,那个版本被我改动了时间戳我
现在已经把它改回来了。相比于急于求成绩,我更希望自己作一个诚实的人,希望大家
能原谅)给贴出来了。因为我们作业deadline之后也还都是可以接着交的,所以任何作
业,老师都是可以根据后来的版本,追终到这个学生的最后进展的,这个最新进展老师
到底给不给分、就要看老师如何下决定了。
deadline前的版本,被我附在下面了。
当然,把自己的这个版本更新后,我愿为这个楼(这一次出来写的所有)属于自己的每
个贴子负责,所有写出来的,都是真实发生过的事。
=================================================
Output of Building User Code
Ex... 阅读全帖
d**********o
发帖数: 1321
35
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw3 & hw3b 最终结果
贴一个自己 hw3b 的 match 结果让小伙伴们感受一下我们作业需要的结果是什么样子
的。
如果是同专业的小伙伴,最后拷贝到编辑器中仔细看一下,这个网页因为宽度有限,让
并排两列的比较呈现出来的很变形。
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
makefile
scanType.h
symtab.h
symtab.c
20131123233236-(me~~)-CS445-F13-A3B.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
... 阅读全帖
d**********o
发帖数: 1321
36
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw3b deadline前版本
这里我也先公开承认一下自己早前犯过的错误,在这个楼的第 14 页、第 265 楼,我
有贴出自己的hw3b,但现在我必须向亲爱的读者一一您公开道歉。因为当时因为着急,
我没能找到hw3b deadline前的版本,就把这次作业后来的最终版本(也就是那个楼贴
出来的,只剩下ReturnK、CompoundK两条小尾巴的版本,那个版本被我改动了时间戳我
现在已经把它改回来了。相比于急于求成绩,我更希望自己作一个诚实的人,希望大家
能原谅)给贴出来了。因为我们作业deadline之后也还都是可以接着交的,所以任何作
业,老师都是可以根据后来的版本,追终到这个学生的最后进展的,这个最新进展老师
到底给不给分、就要看老师如何下决定了。
deadline前的版本,被我附在下面了。
当然,把自己的这个版本更新后,我愿为这个楼(这一次出来写的所有)属于自己的每
个贴子负责,所有写出来的,都是真实发生过的事。
=================================================
Output of Building User Code
Ex... 阅读全帖
g*****u
发帖数: 14294
37
FORM 13F INFORMATION
TABLE
VALUE SHARES/
SH/ PUT/ INVSTMT OTHER VOTING AUTHORITY
NAME OF ISSUER TITLE OF CLASS CUSIP (x$1000) PRN AMT
PRN CALL DSCRETN MANAGERS SOLE SHARED NONE
- ------------------------------ ---------------- --------- -------- -------
- --- ---- ------- ------------ -------- -------- --------
ACME PACKET INC ... 阅读全帖
d**********o
发帖数: 1321
38
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖
d**********o
发帖数: 1321
39
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖
f**d
发帖数: 768
40
来自主题: Neuroscience版 - eBook: From computer to brain
这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖
l******h
发帖数: 2
41
Highly reputational company with very competitive compensation for all
positions.
Please send in your resume and position/positions you like to apply to my
email address below.
h*******[email protected]
All resumes will be deliver to hiring manager directly. Act fast!
Thanks!
Silicon Engineering Group
Sr. Physical Design Timing Engineer
Timing (STA) Manager
Senior Physical Design Engineer
CAD Manager - Front-End Design and Verification
Sr. CAD Engineer - Place & Route / Physical Design Engineer
Sr. CA... 阅读全帖
l******h
发帖数: 2
42
Highly reputational company with very competitive compensation for all
positions.
Please send in your resume and position/positions you like to apply to my
email address below.
h*******[email protected]
All resumes will be deliver to hiring manager directly. Act fast!
Thanks!
Silicon Engineering Group
Sr. Physical Design Timing Engineer
Timing (STA) Manager
Senior Physical Design Engineer
CAD Manager - Front-End Design and Verification
Sr. CAD Engineer - Place & Route / Physical Design Engineer
Sr. CA... 阅读全帖
d**********o
发帖数: 1321
43
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw3b c-.y file
上面这一楼贴了载止hw3b deadline时我match的结果(也就是老师可以以这些不match
的ERROR为借口不给后来我补上的成绩),但是因为当时我还是没有写完,后来感恩节
期间就接着又写了一些,而且hw5是based on hw3 & hw3b的基础上(当我hw5是based
on更好的hw3的结果时,我应该可以得更多的分吧)。
hw4因为写得比较顺利,就不曾保留任何交上去作业的output,没有什么一目了然的结
果是我可以贴在这里的。原本我是想要把自己最的一次作业hw5贴出来的,但那已经是
一个完整的compiler,而且以后我还需要用自己的course project来找工作,所以一定
就不贴最终结果了。那就贴一个hw3b的c-.y文件吧,它集中的hw1、hw2、hw3、 hw3b的
结果,是我自己hw3b *.y文件的最完整版本。这些作业里面也有很多机关一一人为增加
的难度,比如那六七个IO相关的function,不仅traverse tree、build syntax tree的
时候会成为一个考点(把它们作为一个node连在syntax... 阅读全帖
d**********o
发帖数: 1321
44
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw3b c-.y file
上面这一楼贴了载止hw3b deadline时我match的结果(也就是老师可以以这些不match
的ERROR为借口不给后来我补上的成绩),但是因为当时我还是没有写完,后来感恩节
期间就接着又写了一些,而且hw5是based on hw3 & hw3b的基础上(当我hw5是based
on更好的hw3的结果时,我应该可以得更多的分吧)。
hw4因为写得比较顺利,就不曾保留任何交上去作业的output,没有什么一目了然的结
果是我可以贴在这里的。原本我是想要把自己最的一次作业hw5贴出来的,但那已经是
一个完整的compiler,而且以后我还需要用自己的course project来找工作,所以一定
就不贴最终结果了。那就贴一个hw3b的c-.y文件吧,它集中的hw1、hw2、hw3、 hw3b的
结果,是我自己hw3b *.y文件的最完整版本。这些作业里面也有很多机关一一人为增加
的难度,比如那六七个IO相关的function,不仅traverse tree、build syntax tree的
时候会成为一个考点(把它们作为一个node连在syntax... 阅读全帖
i**********e
发帖数: 1145
45
Try this:
It will use the high resolution performance clock if available (for both
windows/*nix platform), otherwise it will roll back to the non-high
resolution timer.
/**
* Timer class definition file.
*
* Provides basic timer functionality which calculates running time for
certain
* part of your program. Very useful for analyzing algorithm running time.
* After a Timer object is created, calling the Start() member function
starts
* the timer running. The Stop() member function stops the timer... 阅读全帖
D**o
发帖数: 2653
46
来自主题: Mathematics版 - 关于煙花不堪剪
注意作者 \author{YHBKJ}
Atiyah-Bott Localization 1
2012-09-05 09:24:19
\documentclass[a4paper,12pt]{article}
\usepackage{amsfonts}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{CJK,graphicx}
\usepackage{amscd}
\usepackage{amssymb}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{lemma}{Lemma}[section]
\begin{document}
\title{\textbf{\Huge{Atiyah-Bott Localization 1}}}\author{YHBKJ}\date{}\
maketitle
\begin{ab... 阅读全帖
s****n
发帖数: 211
47
来自主题: Biology版 - 给生物博士后们打点气
小弟不才, 在中西部公立大学, 东部私立大学, 老兵VA医院混了多年博后未果,
痛下决心改了行, 学了IT和精算, 现在整天就做pension的模型.
从你的帖子里, 看出来你对pension的认识主要来自于你自己的一些个人计划的细节,
即便是这些, 你也没有搞得很清楚. 建议你先去了解一下 defined benefit plan
和defined contribution plan之间的差别, 把这两者的定义和区别搞清楚了.
下面引自WIKI, 写得非常精确和精炼:我就照抄了. 在美国, 一般说pension
, 是指defined benefit plan. 这是真正意义上我们说的pension (最后一段讲得
非常清楚).
"A defined benefit pension plan is a type of pension plan in which an
employer/sponsor promises a specified monthly benefit on retirement that is
predetermined by a formula based o... 阅读全帖
t***h
发帖数: 5601
48
http://sana.sy/en/?p=62206
22 November, 2015
Damascus, SANA, President Bashar al-Assad held an interview to Chinese
PHOENIX TV Channel. Following is the full text of the interview:
Question 1: Good morning, President Assad. Thank you for having us in this
former presidential palace. You see, when people talk about the crisis in
Syria, the term "civil war" is often heard, but it seems like you never
agree with it. You don't think it's a civil war going on in Syria, do you?
President Assad: First ... 阅读全帖
t******n
发帖数: 2939
49
☆─────────────────────────────────────☆
l63 (l63) 于 (Thu May 23 00:34:22 2013, 美东) 提到:
假设素数只有有限个, 记为 p_1,p_2,...,p_k
考察 N = p_1*p_2*...*p_k + 1
可知: 对于任意i = 1,2,3,...,k, p_i 不能整除 N
由素数的定义:
a是素数 <=> a是大于1的自然数, 且a不被任何小于a的素数整除
可知: N是素数
这与素数只有p_1,p_2,...,p_k矛盾.
故假设不成立.
所以素数有无穷多个.
☆─────────────────────────────────────☆
l63 (l63) 于 (Thu May 23 00:37:03 2013, 美东) 提到:
在承认素数的这个等价定义 (即 a是素数 <=> a是大于1的自然数, 且a不被任何小于a
的素数整除) 的前提下, 居然有人会认为这个证明是错的, 或者是不完备的.
我实在不能理解.
求问一下大家, 是不是有的人的脑子天生有缺陷, 根本怎么教都不会明白... 阅读全帖
D**e
发帖数: 10169
50
来自主题: Programming版 - 如何计算1000的阶乘
#include
#define l11l 0xFFFF
#define ll1 for
#define ll111 if
#define l1l1 unsigned
#define l111 struct
#define lll11 short
#define ll11l long
#define ll1ll putchar
#define l1l1l(l) l=malloc(sizeof(l111 llll1));l->lll1l=1-1;l->ll1l1=1-1;
#define l1ll1 *lllll++=l1ll%10000;l1ll/=10000;
#define l1lll ll111(!l1->lll1l){l1l1l(l1->lll1l);l1->lll1l->ll1l1=l1;}\
lllll=(l1=l1->lll1l)->lll;ll=1-1;
#define llll 1000
l111 llll1 {
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)