Skip to content

Compute the area under a curve. Given data for x and y, computes the area under curve y.

License

Notifications You must be signed in to change notification settings

warunapww/area_under_curve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

area_under_curve

Compute the area under a curve. Given data for x and y, computes the area under curve y. This uses the trapisoidal rule [1].

Sample input file: JACOBI_.512.64.10240.20480.exec.log

Usage: sh compute_area.sh <input_file_with_data>

i.e. sh compute_area.sh JACOBI_.512.64.10240.20480.exec.log

Output: 2147.69426695000000000000

1] - http://people.oregonstate.edu/~haggertr/487/integrate.htm

About

Compute the area under a curve. Given data for x and y, computes the area under curve y.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages