Skip to content

dangthanh360/erlang-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Study Erlang

Calculate Pi using using Monte Carlo method

  • pi_seq: Implements uses sequential calculations
  • pi_con: Implements uses concurrency

Test

  • Compile:

    c(pi_seq).
    c(pi_con).
  • Run and compare elapsed time:

    pi_seq:run(23000000, 30).
    Pi: 3.1411624721233706
    Elapsed time: 65.489 seconds
    pi_con:run(23000000, 30).
    Pi: 3.1411339503854805
    Elapsed time: 19.501 seconds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages