由买买提看人间百态

topics

全部话题 - 话题: elapses
首页 上页 1 2 3 4 5 6 7 8 9 下页 末页 (共9页)

发帖数: 1
1
Source: Fragomen Global LLP & Affiliates
Update - Employment-Based Adjustment Interviews: What Foreign Nationals Need
to Know
December 14, 2017
Executive Summary
Personal interviews for employment-based adjustment applicants began on
October 1, 2017 for those whose cases were filed on or after March 6, 2017.
Adjustment applicants who are called for an interview should be prepared to
answer questions about their background, employment and qualifications and
to provide application documentation if... 阅读全帖
p********y
发帖数: 5141
2
来自主题: Cycling版 - 失败的Olympic Tri (转载)
【 以下文字转载自 Tri 讨论区 】
发信人: penguinfly (flying penguin), 信区: Tri
标 题: 失败的Olympic Tri
发信站: BBS 未名空间站 (Mon Jun 3 18:43:20 2013, 美东)
02/06/2013 Tata Steelman Olympic Distance Triathlon
1.5km swim; 40km bike; 10km run.
--------------------------------------------------------
前言
比赛结果目前还没有看到,但是可以确定的是,我是最后一名!:'(
唯一可以安慰自己的就是,我坚持完赛了。。。=(
又是比赛前不到一周spontaneously地sign up了这个比赛,算是为两周之后的半铁预演
。我想这次预演的效果真的达到了,不止是身体上的,更重要的是心理上的。
---------------------------------------------------------
前言的前言
去年9月,骨折尚在康复中的企鹅一冲动就sig... 阅读全帖
l***h
发帖数: 9308
3
我记得以前给过一个术语链接在某个置项贴里面,可能归档了吧,再贴一下,新人不懂
的可以参考一下
http://www.runnersworld.com/community/forums/runner-communities
Your friendly beginning runner's guide to .... runner's jargon.
You'll notice we don't have a FAQ here -- that's because we want you to ask
your questions, join in, become part of the community! That said, I am sure
new runners get overwhelmed by phrases we throw around all the time here
with impunity; you probably think we're all speaking some strange language.
To follow along here, ... 阅读全帖
W***i
发帖数: 833
4
来自主题: Running版 - Running Terminology
算了,我还是再贴一遍,
Your friendly beginning runner's guide to .... runner's jargon.
You'll notice we don't have a FAQ here -- that's because we want you to ask
your questions, join in, become part of the community! That said, I am sure
new runners get overwhelmed by phrases we throw around all the time here wit
h impunity; you probably think we're all speaking some strange language. To
follow along here, it's really helpful just to know some general stuff and w
hat terms mean. So in the interest of hel... 阅读全帖
R*****s
发帖数: 41236
5
瓦哥:Tahoe Rim Trail 100 BIB 796
http://www.ultralive.net/trt100/webcast.php
CheckPoint Mileage Time In Elapse Place
Tunnel Creek #1 11mi 07:48am 02:48:00 /152
------------------------------------------------------
小龙: VERMONT 100 BIB 320
http://www.barttiming.com/summer/vt10013-splits.htm
CheckPoint Elapse Place
1 - Taftsville Bridge 2:39:37 /111
2 - Pretty House 3:58:56.30 /127
3 - Stage Rd 5:41:22.70 /79
4 - Route 12 6:21:55.10 /78
5 - Lincoln C... 阅读全帖
l***h
发帖数: 9308
6
来自主题: Running版 - 你们说的MP是什么 ?
marathon pace
跑步黑话大全
Your friendly beginning runner's guide to .... runner's jargon. Cool
You'll notice we don't have a FAQ here -- that's because we want you to ask
your questions, join in, become part of the community! That said, I am sure
new runners get overwhelmed by phrases we throw around all the time here wit
h impunity; you probably think we're all speaking some strange language. To
follow along here, it's really helpful just to know some general stuff and w
hat terms mean. So in the in... 阅读全帖
p*******r
发帖数: 117
7
跑版新人,求西雅图LONG RUN PAL,
1. Summary
Distance: 6.19 mi
Time: 58:36
Avg Pace: 9:28 min/mi
Elevation Gain: 366 ft
Calories: 530 C
Details
Timing
Time: 58:36
Moving Time: 57:54
Elapsed Time: 1:27:44
Avg Pace: 9:28 min/mi
Avg Moving Pace: 9:21 min/mi
Best Pace: 7:18 min/mi
SpeedPace
Elevation
Elevation Gain: 366 ft
Elevation Loss: 389 ft
Min Elevation: 61 ft
Max Elevation: 320 ft
2.
Summary
Distance: 7.03 mi
Time: 1:03:46
Avg Pace: 9:05 min/mi
Elevation Gain: 462 ft
Calories: 599 C
Details
Timing
Time:... 阅读全帖
R*****s
发帖数: 41236
8
☆─────────────────────────────────────☆
Rodimus (变叔 - 永动机器) 于 (Mon Jan 13 15:15:00 2014, 美东) 提到:
参加活动的进来占个楼,然后更新同一个帖子就好了,免得满版都是log贴,
请不要单独再开楼了,欢迎大家参加活动!
大使的【此恨绵绵】活动规则的link:
http://www.mitbbs.com/article_t2/Running/31713537.html
☆─────────────────────────────────────☆
Rodimus (变叔 - 永动机器) 于 (Mon Jan 13 15:17:29 2014, 美东) 提到:
我不参加最后活动奖励了,不过还是尽力坚持每天跑吧,实在跑不动了就歇.
(鞋都是inov8 155, 3.5mi都是Spin Class之后的砖头训练,跑步机上用foot pod
测的数据, 和跑步机自己的距离,速度大体吻合,不同机器,有些差异)
log:
date days score Distance... 阅读全帖
c*******r
发帖数: 293
9
来自主题: Running版 - 跑过芝马的帮帮忙
http://www.chicagomarathon.com/participant-information/course-a
Clocks and mile markers
Digital clocks are positioned at the following locations throughout the
course: the start line, each mile marker, each 5k marker, the halfway point
(13.1 miles), and the finish line. Digital clocks provide the elapsed event
time (gun time). Mile and kilometer markers will be positioned at each mile
and 5k. Digital clocks at the finish line will display unofficial finish
times. The elapsed event time begins wi... 阅读全帖
H****w
发帖数: 1632
10
How to Choose the Best Scuba Diving Watch
Quartz or Automatic Self-winding, Analog or Digital Dive Watches
Mar 6, 2009 Yuen Kit Mun
Analog Dive Watch with Classic Rotating Bezel - lince86 stock.xchngDive
watches help to ensure the safety of scuba divers. They also look cool and
are popular with men and ladies. Here are the features to look out for.

Dive watches are used to
Track dive time, to avoid running out of air.
Time decompression stages when ascending.
Even with today's dive computers... 阅读全帖
p*****n
发帖数: 294
11
来自主题: Swimming版 - 自由泳学习记
主席教导我们“前途是光明的,道路是曲折的”(不知道是不是语录里的,嘿嘿,借用
一下)。
11/19/12
Distance: 1,000 yd(break down)
Time: 31:42
Moving Time: 24:10
Elapsed Time: 31:42
Avg Pace: 3:10 min/100 yd
Avg Moving Pace: 2:25 min/100 yd
SPL: 22
感觉pull和kick都不给劲,不知道是周末网球打多了还是技术有问题。
11/20/12
为了提高技术,舍本上装备。尝试使用Speedo pull buoy练划水。
Distance: 1,050 yd
Time: 42:40
Moving Time: 25:49
Avg Pace: 4:03 min/100 yd
Avg Moving Pace: 2:24 min/100 yd
上了装备才发现毛病是如此之大,夹上pull buoy后发现pull和rotation很是不协调,
简直就是拧... 阅读全帖
p*****n
发帖数: 294
12
来自主题: Swimming版 - 自由泳学习记
主席教导我们“前途是光明的,道路是曲折的”(不知道是不是语录里的,嘿嘿,借用
一下)。
11/19/12
Distance: 1,000 yd(break down)
Time: 31:42
Moving Time: 24:10
Elapsed Time: 31:42
Avg Pace: 3:10 min/100 yd
Avg Moving Pace: 2:25 min/100 yd
SPL: 22
感觉pull和kick都不给劲,不知道是周末网球打多了还是技术有问题。
11/20/12
为了提高技术,舍本上装备。尝试使用Speedo pull buoy练划水。
Distance: 1,050 yd
Time: 42:40
Moving Time: 25:49
Avg Pace: 4:03 min/100 yd
Avg Moving Pace: 2:24 min/100 yd
上了装备才发现毛病是如此之大,夹上pull buoy后发现pull和rotation很是不协调,
简直就是拧... 阅读全帖
p*****n
发帖数: 294
13
来自主题: Swimming版 - 自由泳学习记
4/2/13
Distance: 2,000 yd(100yd Free, 500yd kick, 1000yd pull, 2x50+3x100yd
Free)
Moving Time: 41:01
Elapsed Time: 44:30
Avg Pace: 1:56 min/100 yd
Total Strokes: 698
500yd kick: 12:04
1000yd pull: 19:36
4/3/13
Distance: 2,000 yd(550 free, 8x100+50+500 free, 2x25 back, 50 breast)
Moving Time: 37:59
Elapsed Time: 44:38
Avg Pace: 1:54 min/100 yd
Avg Strokes: 12 / length
使劲的pull, 单个100码moveing time压到了1:50以下,550yd avg pace 1:53, 500yd
avg pace 2:02. 前6个1... 阅读全帖
p*****n
发帖数: 294
14
来自主题: Swimming版 - 自由泳学习记
感谢诸位指点和鼓励,这两天注意修正动作。
4/25/13
Distance: 2,000 yd(6x100 free on 2:00, 8x50 free on 1:00, 2x500 free)
Moving Time: 36:02
Elapsed Time: 41:56
Avg Pace: 1:48 min/100 yd
Best Pace: 1:30 min/100 yd
前半程注重协调和力度,后半程注重协调和streamline.
4/26/13
Distance: 2,000 yd(100 free, 500 kick, 1000 pull, 400 free)
Moving Time: 39:19
Elapsed Time: 40:48
Avg Moving Pace: 1:58 min/100 yd
Best Pace: 1:32 min/100 yd
500 kick 10:50, 后半程没有感觉太疲劳,不过觉得想进10:00还是满有难度。
1000 pull 和 最后400yd Free ... 阅读全帖
p********y
发帖数: 5141
15
来自主题: Swimming版 - 失败的Olympic Tri (转载)
【 以下文字转载自 Tri 讨论区 】
发信人: penguinfly (flying penguin), 信区: Tri
标 题: 失败的Olympic Tri
发信站: BBS 未名空间站 (Mon Jun 3 18:43:20 2013, 美东)
02/06/2013 Tata Steelman Olympic Distance Triathlon
1.5km swim; 40km bike; 10km run.
--------------------------------------------------------
前言
比赛结果目前还没有看到,但是可以确定的是,我是最后一名!:'(
唯一可以安慰自己的就是,我坚持完赛了。。。=(
又是比赛前不到一周spontaneously地sign up了这个比赛,算是为两周之后的半铁预演
。我想这次预演的效果真的达到了,不止是身体上的,更重要的是心理上的。
---------------------------------------------------------
前言的前言
去年9月,骨折尚在康复中的企鹅一冲动就sig... 阅读全帖
L******u
发帖数: 3412
16
Ares已经3岁了,它10年、11年、12年都打了狂犬。今天带去做heartworm test,
说10月份又要打,我问为什么。Vet说之前打的都是1-yr的rabies,今天可以换成3-yr
的。拜托,我做过research好吧?管一年的和管三年的rabies是exactly same的。从成
分到分量都是,只是包装不同而已。puppy是要打管一年的,因为后面要打booster。
Ares去年2岁后打的rabies,就应该是打管3年的。但那时我根本不知道还有1yr和
3yr的rabies这种说法,傻傻的就让vet打了1 yr的。。今天跟vet说能否我依然付疫苗
钱,但只是帮我改vaccination的过期时间,不要给狗打疫苗。人家来句不行,TX law
规定了要这么做。我去,当我白痴啊?Texas law也不是这么写的。
下面是摘自Texas Department of State Health Service:
Pet Vaccination Requirements
The state of Texas requires that dogs and cats be... 阅读全帖
T*******y
发帖数: 6523
17
I googled and found this:
http://www.dhammawheel.com/viewtopic.php?f=19&t=1670
From Venerable Bodhi
There definitely seem to be suggestions in the suttas that there is a
temporal gap, an intermediate state, between lives, at least with respect to
rebirth in the human realm and in the case of non-returners. I have a long
note to the Connected Discourses of the Buddha (Samyutta Nikaya), chapter 46
, which explores this question in regard to the fivefold distinction among
non-returners. I will ... 阅读全帖
W********n
发帖数: 254
18
来自主题: DotNet版 - C#版ruby太慢了
0 * 0 = 0
1 * 1 = 1
2 * 2 = 4
3 * 3 = 9
11 * 11 = 121
22 * 22 = 484
101 * 101 = 10201
111 * 111 = 12321
121 * 121 = 14641
202 * 202 = 40804
212 * 212 = 44944
1001 * 1001 = 1002001
1111 * 1111 = 1234321
2002 * 2002 = 4008004
10001 * 10001 = 100020001
10101 * 10101 = 102030201
10201 * 10201 = 104060401
11011 * 11011 = 121242121
11111 * 11111 = 123454321
11211 * 11211 = 125686521
20002 * 20002 = 400080004
20102 * 20102 = 404090404
TPL elapsed: 00:00:00.2818409
1 * 1 = 1
2 * 2 = 4
3 * 3 = 9
11 * 11 ... 阅读全帖
p**i
发帖数: 688
19
来自主题: Hardware版 - [合集] 逗你玩:大家都来算算Pi
☆─────────────────────────────────────☆
jxmg (剑行美国) 于 (Mon Aug 27 20:03:54 2007) 提到:
http://www.apfloat.org/apfloat_java/applet/pi.html
都用100万位,Radix 10,选Chudnovsky,报个数啊。
奇怪,我的电脑算的时候CPU的Load不到75%。为什么不100%呐?
☆─────────────────────────────────────☆
lamborghini (烧玉米杆的Murcielago) 于 (Mon Aug 27 20:11:37 2007) 提到:
C2D T7400:
elapsed time 23.465 sec
final value took 2.965 sec
Total elapsed time 26.432 sec
☆─────────────────────────────────────☆
ZeeGee (猪猪) 于 (Mon Aug 27 20:17:30 2007) 提到
p*********e
发帖数: 32207
20
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 201326592
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 201326592
sharedMemoryTreshold = 786432
blockSize = 134217728
numberOfProcessors = 8
Calculating pi to 1000000 radix-10 digits
Using up to 8 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 3.978 seconds
Final value took 0.826 seconds
Total elapsed time 4.852 seconds... 阅读全帖
d*******3
发帖数: 6550
21
100% complete, elapsed time 3.012 seconds
Final value took 0.601 seconds
Total elapsed time 3.617 seconds
i7-2600
w******3
发帖数: 1662
22
100% complete, elapsed time 3.566 seconds
Final value took 0.749 seconds
Total elapsed time 4.32 seconds
i7-2630qm
q********g
发帖数: 10694
23
Calculating pi to 1000000 radix-10 digits
Using up to 8 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 1.421 seconds
Final value took 0.358 seconds
Total elapsed time 1.78 seconds
i7 950, Linux
f*y
发帖数: 876
24
100% complete, elapsed time 39.209 seconds
Final value took 5.896 seconds
Total elapsed time 45.129 seconds
T42p PM1.8G ~~~~(>_<)~~~~
A*******s
发帖数: 708
25
100% complete, elapsed time 9.327 seconds
Final value took 1.446 seconds
Total elapsed time 10.778 seconds
T7200
A*******s
发帖数: 708
26
绝对是jre的问题,07年那里有人贴出来
C2D T7400:
elapsed time 23.465 sec
final value took 2.965 sec
Total elapsed time 26.432 sec
我T7200现在只需要10.778秒
A*******s
发帖数: 708
27
绝对是jre的问题,07年那里有人贴出来
C2D T7400:
elapsed time 23.465 sec
final value took 2.965 sec
Total elapsed time 26.432 sec
我T7200现在只需要10.778秒
s9
发帖数: 1192
28
100% complete, elapsed time 3.272 seconds
Final value took 0.684 seconds
Total elapsed time 3.964 seconds
Intel Xeon W3565
a******n
发帖数: 1052
29
100% complete, elapsed time 4.158 seconds
Final value took 0.879 seconds
Total elapsed time 5.065 seconds
i7-950 默认设置
i***r
发帖数: 1024
30
100% complete, elapsed time 3.032 seconds
Final value took 0.672 seconds
Total elapsed time 3.708 seconds
i****[email protected]
b**l
发帖数: 33123
31
我老这个才是极品:
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 201326592
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 201326592
sharedMemoryTreshold = 3145728
blockSize = 134217728
numberOfProcessors = 2
Calculating pi to 1000000 radix-10 digits
Using up to 2 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 17.922 seconds
Final value took 3.125 seconds
Total elapsed time 2... 阅读全帖
p***r
发帖数: 1098
32
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 100663296
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 100663296
sharedMemoryTreshold = 393216
blockSize = 67108864
numberOfProcessors = 8
Calculating pi to 1000000 radix-10 digits
Using up to 8 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 2.083 seconds
Final value took 0.584 seconds
Total elapsed time 2.672 seconds
... 阅读全帖
y*****x
发帖数: 3291
33
我介个是只花了70刀买的 AMD X3,开了一核,好像也不比 i7慢多少么.
Calculating pi to 1000000 radix-10 digits
Using up to 4 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 5.749 seconds
Final value took 1.142 seconds
Total elapsed time 6.904 seconds
d********e
发帖数: 1468
34
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 201326592
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 201326592
sharedMemoryTreshold = 1572864
blockSize = 134217728
numberOfProcessors = 4
Calculating pi to 1000000 radix-10 digits
Using up to 4 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 2.87 seconds
Final value took 0.53 seconds
Total elapsed time 3.4 seconds
i5... 阅读全帖
n*******e
发帖数: 4894
35
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 201326592
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 201326592
sharedMemoryTreshold = 1572864
blockSize = 134217728
numberOfProcessors = 4
Calculating pi to 1000000 radix-10 digits
Using up to 4 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 2.522 seconds
Final value took 0.458 seconds
Total elapsed time 2.986 second... 阅读全帖
d********e
发帖数: 1468
36
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 201326592
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 201326592
sharedMemoryTreshold = 786432
blockSize = 134217728
numberOfProcessors = 8
Calculating pi to 1000000 radix-10 digits
Using up to 8 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 2.62 seconds
Final value took 0.6 seconds
Total elapsed time 3.22 seconds
i7-... 阅读全帖
s****n
发帖数: 2305
37
elapsed time 21.828 seconds
Final value took 3.281 seconds
Total elapsed time 25.14 seconds
s*****a
发帖数: 1269
38
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 201326592
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 201326592
sharedMemoryTreshold = 6291456
blockSize = 134217728
numberOfProcessors = 1
Calculating pi to 1000000 radix-10 digits
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 62.062 seconds
Final value took 11.813 seconds
Total elapsed time 73.985 seconds
p**o
发帖数: 3409
39
100% complete, elapsed time 5.824 seconds
Final value took 1.198 seconds
Total elapsed time 7.033 seconds
AMD Athlon II X4 640 3.00GHz
n*******0
发帖数: 2002
40
i7 875k,默认频率。(仿佛很搓的样子嘛。。。)
100% complete, elapsed time 4.11 seconds
Final value took 0.916 seconds
Total elapsed time 5.034 seconds
G*F
发帖数: 427
41
builderFactory = org.apfloat.internal.IntBuilderFactory
maxMemoryBlockSize = 201326592
cacheL1Size = 8192
cacheL2Size = 262144
cacheBurst = 32
memoryTreshold = 201326592
sharedMemoryTreshold = 786432
blockSize = 134217728
numberOfProcessors = 8
Calculating pi to 1000000 radix-10 digits
Using up to 8 parallel operations for calculation
Using the Chudnovsky brothers' binary splitting algorithm
100% complete, elapsed time 3.336 seconds
Final value took 0.761 seconds
Total elapsed time 4.105 seconds... 阅读全帖
c***y
发帖数: 114
42
// Get current time
long start = System.currentTimeMillis();

// Do something ...

// Get elapsed time in milliseconds
long elapsedTimeMillis = System.currentTimeMillis()-start;

// Or get elapsed time in seconds
float elapsedTimeSec = elapsedTimeMillis/1000F;
Or you can just use command "time java " if you are running your code
on UNIX, it gives you more accurate info.
z****e
发帖数: 2024
43
来自主题: Programming版 - 多线程计时不准std::thread尝鲜 问题
为什么多线程计时的时候就不准了呢?
mywork是一个干活的类,里边对n1和n2分别进行计算,用cal1和cal2函数。
然后生成两个线程类,都引用同一个mywork,算cal1和cal2.
比较对象是一个普通函数f()。
我明明,用手表计时,发现多线程是快的,大概19秒左右完成,看任务管理器的cpu实用状态也大体符合20秒。
怎么用程序计时,就是这个输出了呢?太奇怪了,真着急。
output:
1000000000
33.84 seconds elapsed for multithreading.(这句话出现的时候,其实是20秒)
1000000000
27.82 seconds elapsed for one thread.
以下是源码。
#include
#include
#include
using namespace std;
const long long int M=5e8;
class mywork{
public:
mywork():n1(1),n2(1),flag1(0),flag2(0){}
void
N***m
发帖数: 4460
44
来自主题: Programming版 - java小问题
正在学习JNA library,测试了一下
计算sum_i sin(i)的值,i=0,2000000。
分别调用c library和java自己的数学库。
结果如下:
using c function
result = 0.5520835778318177 | elapsed time = 5.188 seconds
using java function
result = 0.5520835778317068 | elapsed time = 0.718 seconds
为什么会差这么多?那大家要是平时需要快速计算结果的情况下,如何
把c++程序和java结合?
===========================================================
public class A {


public interface CLibrary extends Library {
CLibrary INSTANCE = (CLibrary)
... 阅读全帖
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... 阅读全帖
n******7
发帖数: 12463
46
蛋疼验证了一下
pisum 是Julia的实现, pisum2 是我改的
轻松提高40倍
每个写过一天R code的都不会写成Julia这样
纯不要脸
pisum = function() {
t = 0.0
for (j in 1:500) {
t = 0.0
for (k in 1:10000) {
t = t + 1.0/(k*k)
}
}
return(t)
}
pisum2 = function() {
t = 0.0
for (j in 1:500) {
k = 1:10000
t = sum(1/(k*k))
}
return(t)
}
> ptm <- proc.time()
> assert(abs(pisum()-1.644834071848065) < 1e-12);
> proc.time() - ptm
user system elapsed
8.874 0.000 8.883
>
> ptm <- proc.time()
> assert(abs(pisu... 阅读全帖
c****p
发帖数: 6474
47
来自主题: Computation版 - Matlab where function?
clear
LOOP=100000;
x=-16:.1:16;
S=size(x);
tic;
for i=1:LOOP
z=zeros(S);
z(x>0)=sqrt(x(x>0))*4;
end
toc;
tic;
for i=1:LOOP
z=zeros(S);
ind=find(x>0);
z(ind)=sqrt(x(ind))*4;
end
toc;
>> timetest
Elapsed time is 4.073553 seconds.
Elapsed time is 4.463364 seconds.
t***s
发帖数: 4666
48
来自主题: Computation版 - Matlab where function?
>> x = randn(5000);
>> z = zeros(size(x));
>> tic;z(x>0)=sqrt(x(x>0))*4;toc;
Elapsed time is 3.653124 seconds.
>> tic;ind=x>0;z(ind)=sqrt(x(ind))*4;toc;
Elapsed time is 3.310924 seconds.
>>

发帖数: 1
49
来自主题: Physics版 - QUANTUM SPACE ELEMENTS (QSE)
QUANTUM SPACE ELEMENTS (QSE)
INTRODUCTION
This is a non-mathematical proposal introducing a cosmological model that is
cyclic, deterministic and infinity-free. For the purpose of achieving this
objective a number of new concepts are introduced. The framework of this
proposal is structured over a number of assumptions, leading to various
considerations of cosmological concerns. Furthermore, verification methods
are suggested of both, observational and mathematical nature.
ASSUMPTIONS
Space is dis... 阅读全帖
o*****e
发帖数: 435
50
来自主题: Science版 - matlab问题?
please:
help global;
==================================
function tic
% TIC Start a stopwatch timer.
% TIC; any stuff; TOC
% prints the time required.
% See also: TOC, CLOCK.
global TICTOC
TICTOC = clock;
function t = toc
% TOC Read the stopwatch timer.
% TOC prints the elapsed time since TIC was used.
% t = TOC; saves elapsed time in t, does not print.
% See also: TIC, ETIME.
global TICTOC
if nargout < 1
elapsed_time = etime(clock,TICTOC)
else
t = etime(clock,
首页 上页 1 2 3 4 5 6 7 8 9 下页 末页 (共9页)