Suche senden
Hochladen
Perlで任意精度計算
•
Als KEY, PDF herunterladen
•
0 gefällt mir
•
1,155 views
L
lestrrat
Folgen
YAPC::Asia Tokyo 2010 presentation
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 53
Jetzt herunterladen
Empfohlen
Vcs29
Vcs29
Malikireddy Bramhananda Reddy
Rkf
Rkf
faintcardy
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
C++ Programming - 14th Study
C++ Programming - 14th Study
Chris Ohk
VTU Network lab programs
VTU Network lab programs
Ananda Kumar HN
Circular queue
Circular queue
ShobhaHiremath8
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp
Empfohlen
Vcs29
Vcs29
Malikireddy Bramhananda Reddy
Rkf
Rkf
faintcardy
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
C++ Programming - 14th Study
C++ Programming - 14th Study
Chris Ohk
VTU Network lab programs
VTU Network lab programs
Ananda Kumar HN
Circular queue
Circular queue
ShobhaHiremath8
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp Shadbox ERC223
Jarmo van de Seijp
Exp3
Exp3
projectwork23
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
Oopsprc1e
Oopsprc1e
Ankit Dubey
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
C++ programs
C++ programs
Mukund Gandrakota
Cpp
Cpp
Ankit Dubey
Vcs9
Vcs9
Malikireddy Bramhananda Reddy
Cristina
Cristina
daquicaro
Ooprc3c
Ooprc3c
Ankit Dubey
dplyr
dplyr
Romain Francois
Session06 functions
Session06 functions
HarithaRanasinghe
week-11x
week-11x
KITE www.kitecolleges.com
Ooprc4 b
Ooprc4 b
Ankit Dubey
week-4x
week-4x
KITE www.kitecolleges.com
week-18x
week-18x
KITE www.kitecolleges.com
week-5x
week-5x
KITE www.kitecolleges.com
Currying in Swift
Currying in Swift
Maxim Zaks
Document
Document
AjitRaj12
week-10x
week-10x
KITE www.kitecolleges.com
Running JPA (YAPC::NA 2011)
Running JPA (YAPC::NA 2011)
lestrrat
How To Think In Go
How To Think In Go
lestrrat
Weitere ähnliche Inhalte
Was ist angesagt?
Exp3
Exp3
projectwork23
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
Oopsprc1e
Oopsprc1e
Ankit Dubey
Pratik Bakane C++
Pratik Bakane C++
pratikbakane
C++ programs
C++ programs
Mukund Gandrakota
Cpp
Cpp
Ankit Dubey
Vcs9
Vcs9
Malikireddy Bramhananda Reddy
Cristina
Cristina
daquicaro
Ooprc3c
Ooprc3c
Ankit Dubey
dplyr
dplyr
Romain Francois
Session06 functions
Session06 functions
HarithaRanasinghe
week-11x
week-11x
KITE www.kitecolleges.com
Ooprc4 b
Ooprc4 b
Ankit Dubey
week-4x
week-4x
KITE www.kitecolleges.com
week-18x
week-18x
KITE www.kitecolleges.com
week-5x
week-5x
KITE www.kitecolleges.com
Currying in Swift
Currying in Swift
Maxim Zaks
Document
Document
AjitRaj12
week-10x
week-10x
KITE www.kitecolleges.com
Was ist angesagt?
(20)
Exp3
Exp3
Pratik Bakane C++
Pratik Bakane C++
Pratik Bakane C++
Pratik Bakane C++
Oopsprc1e
Oopsprc1e
Pratik Bakane C++
Pratik Bakane C++
C++ programs
C++ programs
Cpp
Cpp
Vcs9
Vcs9
Cristina
Cristina
Ooprc3c
Ooprc3c
dplyr
dplyr
Session06 functions
Session06 functions
week-11x
week-11x
Ooprc4 b
Ooprc4 b
week-4x
week-4x
week-18x
week-18x
week-5x
week-5x
Currying in Swift
Currying in Swift
Document
Document
week-10x
week-10x
Andere mochten auch
Running JPA (YAPC::NA 2011)
Running JPA (YAPC::NA 2011)
lestrrat
How To Think In Go
How To Think In Go
lestrrat
小規模でもGKE - DevFest Tokyo 2016
小規模でもGKE - DevFest Tokyo 2016
lestrrat
On internationalcommunityrelations
On internationalcommunityrelations
lestrrat
Don't Use Reflect - Go 1.7 release party 2016
Don't Use Reflect - Go 1.7 release party 2016
lestrrat
Kubernetes in 20 minutes - HDE Monthly Technical Session 24
Kubernetes in 20 minutes - HDE Monthly Technical Session 24
lestrrat
Opening: builderscon tokyo 2016
Opening: builderscon tokyo 2016
lestrrat
いまさら聞けないselectあれこれ
いまさら聞けないselectあれこれ
lestrrat
Andere mochten auch
(8)
Running JPA (YAPC::NA 2011)
Running JPA (YAPC::NA 2011)
How To Think In Go
How To Think In Go
小規模でもGKE - DevFest Tokyo 2016
小規模でもGKE - DevFest Tokyo 2016
On internationalcommunityrelations
On internationalcommunityrelations
Don't Use Reflect - Go 1.7 release party 2016
Don't Use Reflect - Go 1.7 release party 2016
Kubernetes in 20 minutes - HDE Monthly Technical Session 24
Kubernetes in 20 minutes - HDE Monthly Technical Session 24
Opening: builderscon tokyo 2016
Opening: builderscon tokyo 2016
いまさら聞けないselectあれこれ
いまさら聞けないselectあれこれ
Ähnlich wie Perlで任意精度計算
20 modules i haven't yet talked about
20 modules i haven't yet talked about
Tatsuhiko Miyagawa
Functional Pe(a)rls version 2
Functional Pe(a)rls version 2
osfameron
Dynamically Evolving Systems: Cluster Analysis Using Time
Dynamically Evolving Systems: Cluster Analysis Using Time
Magnify Analytic Solutions
第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」
第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」
Ken'ichi Matsui
There's more than one way to empty it
There's more than one way to empty it
Andrew Shitov
How To Crack RSA Netrek Binary Verification System
How To Crack RSA Netrek Binary Verification System
Jay Corrales
Bash tricks
Bash tricks
Carlo Caputo
機械学習と自動微分
機械学習と自動微分
Ichigaku Takigawa
All I know about rsc.io/c2go
All I know about rsc.io/c2go
Moriyoshi Koizumi
The Ring programming language version 1.10 book - Part 16 of 212
The Ring programming language version 1.10 book - Part 16 of 212
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 69 of 210
The Ring programming language version 1.9 book - Part 69 of 210
Mahmoud Samir Fayed
Vcs16
Vcs16
Malikireddy Bramhananda Reddy
Benchmarking Perl (Chicago UniForum 2006)
Benchmarking Perl (Chicago UniForum 2006)
brian d foy
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
Parhamsagharchi
distill
distill
Thomas Knudstrup
Hacking Movable Type
Hacking Movable Type
Stefano Rodighiero
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
pixelass
M11 bagging loo cv
M11 bagging loo cv
Raman Kannan
RではじめるTwitter解析
RではじめるTwitter解析
Takeshi Arabiki
ZeroMQ Is The Answer
ZeroMQ Is The Answer
Ian Barber
Ähnlich wie Perlで任意精度計算
(20)
20 modules i haven't yet talked about
20 modules i haven't yet talked about
Functional Pe(a)rls version 2
Functional Pe(a)rls version 2
Dynamically Evolving Systems: Cluster Analysis Using Time
Dynamically Evolving Systems: Cluster Analysis Using Time
第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」
第13回数学カフェ「素数!!」二次会 LT資料「乱数!!」
There's more than one way to empty it
There's more than one way to empty it
How To Crack RSA Netrek Binary Verification System
How To Crack RSA Netrek Binary Verification System
Bash tricks
Bash tricks
機械学習と自動微分
機械学習と自動微分
All I know about rsc.io/c2go
All I know about rsc.io/c2go
The Ring programming language version 1.10 book - Part 16 of 212
The Ring programming language version 1.10 book - Part 16 of 212
The Ring programming language version 1.9 book - Part 69 of 210
The Ring programming language version 1.9 book - Part 69 of 210
Vcs16
Vcs16
Benchmarking Perl (Chicago UniForum 2006)
Benchmarking Perl (Chicago UniForum 2006)
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
distill
distill
Hacking Movable Type
Hacking Movable Type
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
M11 bagging loo cv
M11 bagging loo cv
RではじめるTwitter解析
RではじめるTwitter解析
ZeroMQ Is The Answer
ZeroMQ Is The Answer
Mehr von lestrrat
Future of Tech "Conferences"
Future of Tech "Conferences"
lestrrat
ONIの世界 - ONIcon 2019 Winter
ONIの世界 - ONIcon 2019 Winter
lestrrat
Slicing, Dicing, And Linting OpenAPI
Slicing, Dicing, And Linting OpenAPI
lestrrat
Oxygen Not Includedをやるべき4つの理由
Oxygen Not Includedをやるべき4つの理由
lestrrat
Rejectcon 2018
Rejectcon 2018
lestrrat
Builderscon tokyo 2018 speaker dinner
Builderscon tokyo 2018 speaker dinner
lestrrat
GoらしいAPIを求める旅路 (Go Conference 2018 Spring)
GoらしいAPIを求める旅路 (Go Conference 2018 Spring)
lestrrat
Google container builderと友だちになるまで
Google container builderと友だちになるまで
lestrrat
筋肉によるGoコードジェネレーション
筋肉によるGoコードジェネレーション
lestrrat
iosdc 2017
iosdc 2017
lestrrat
シュラスコの食べ方 超入門
シュラスコの食べ方 超入門
lestrrat
OSSの敵になるのもいいじゃない
OSSの敵になるのもいいじゃない
lestrrat
Coding in the context era
Coding in the context era
lestrrat
Kubernetes in 30 minutes (2017/03/10)
Kubernetes in 30 minutes (2017/03/10)
lestrrat
Yapceu 2015 yapc asia tokyo behind the scenes (w/o notes)
Yapceu 2015 yapc asia tokyo behind the scenes (w/o notes)
lestrrat
YAPC::Asia Tokyo 2012 Closing
YAPC::Asia Tokyo 2012 Closing
lestrrat
YAPC::Asia Tokyo 2011 Closing
YAPC::Asia Tokyo 2011 Closing
lestrrat
CPAN Gems From The Far East
CPAN Gems From The Far East
lestrrat
Why Don't You Do Your Test - Fukuoka Perl Workshop #18
Why Don't You Do Your Test - Fukuoka Perl Workshop #18
lestrrat
JPA 活動報告 2010/09 Shibuya.pm #14
JPA 活動報告 2010/09 Shibuya.pm #14
lestrrat
Mehr von lestrrat
(20)
Future of Tech "Conferences"
Future of Tech "Conferences"
ONIの世界 - ONIcon 2019 Winter
ONIの世界 - ONIcon 2019 Winter
Slicing, Dicing, And Linting OpenAPI
Slicing, Dicing, And Linting OpenAPI
Oxygen Not Includedをやるべき4つの理由
Oxygen Not Includedをやるべき4つの理由
Rejectcon 2018
Rejectcon 2018
Builderscon tokyo 2018 speaker dinner
Builderscon tokyo 2018 speaker dinner
GoらしいAPIを求める旅路 (Go Conference 2018 Spring)
GoらしいAPIを求める旅路 (Go Conference 2018 Spring)
Google container builderと友だちになるまで
Google container builderと友だちになるまで
筋肉によるGoコードジェネレーション
筋肉によるGoコードジェネレーション
iosdc 2017
iosdc 2017
シュラスコの食べ方 超入門
シュラスコの食べ方 超入門
OSSの敵になるのもいいじゃない
OSSの敵になるのもいいじゃない
Coding in the context era
Coding in the context era
Kubernetes in 30 minutes (2017/03/10)
Kubernetes in 30 minutes (2017/03/10)
Yapceu 2015 yapc asia tokyo behind the scenes (w/o notes)
Yapceu 2015 yapc asia tokyo behind the scenes (w/o notes)
YAPC::Asia Tokyo 2012 Closing
YAPC::Asia Tokyo 2012 Closing
YAPC::Asia Tokyo 2011 Closing
YAPC::Asia Tokyo 2011 Closing
CPAN Gems From The Far East
CPAN Gems From The Far East
Why Don't You Do Your Test - Fukuoka Perl Workshop #18
Why Don't You Do Your Test - Fukuoka Perl Workshop #18
JPA 活動報告 2010/09 Shibuya.pm #14
JPA 活動報告 2010/09 Shibuya.pm #14
Kürzlich hochgeladen
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
gurkirankumar98700
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Kürzlich hochgeladen
(20)
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Perlで任意精度計算
1.
2.
3.
4.
3.14159 26535 89793
23846 26433 83279 50288.....
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
use Math::BigFloat; my $x
= Math::BigFloat->new(‘3.1415...’); my $y = Math::BigFloat->new(‘2.718281...’); my $z = $x * $y;
24.
# my $pi =
Math::BigFloat->new(3.141592...); # my $pi = Math::BigFloat->new(‘3.141592...’);
25.
26.
use strict; use Math::BigFloat; use
Benchmark qw(cmpthese); cmpthese -1, { plain => sub { my $x = rand(10); my $y = rand(10); my $z = rand(10); ($x + $y ) * $z; }, bigfloat => sub { my $x = rand(10); my $y = rand(10); my $z = rand(10); (Math::BigFloat->new($x) + Math::BigFloat->new($y)) * Math::BigFloat->new($z); }, };
27.
daisuke@beefcake ~$ perl
foo.pl Rate bigfloat plain bigfloat 3380/s -- -100% plain 2383127/s 70403% -- daisuke@beefcake ~$ perl foo.pl Rate bigfloat plain bigfloat 3380/s -- -100% plain 2360644/s 69738% -- daisuke@beefcake ~$ perl foo.pl Rate bigfloat plain bigfloat 3380/s -- -100% plain 2406041/s 71081% --
28.
> perl benchmark.pl
Rate bigfloat plain bigfloat 3901/s -- -100% plain 2338582/s 59849% --
29.
•DateTime::Util::Calc •DateTime::Util::Astro •DateTime::Event::Lunar
30.
31.
32.
33.
34.
35.
36.
37.
my $v =
( $x + $y ) * $z; #include <mpfr.h> mpfr_t x, y, z, w; mpfr_add( w, x, y, MPFR_RNDN ); mpfr_mul( w, w, z, MPFR_RNDN );
38.
mpfr_add( w, x,
y, MPFR_RNDN );
39.
40.
41.
42.
s/iter bigint
xs bigint 2.58 -- -98% mpfr 4.70e-02 5394% --
Hinweis der Redaktion
Jetzt herunterladen