File: code.c

package info (click to toggle)
lintian 2.5.50.4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,268 kB
  • ctags: 1,873
  • sloc: perl: 30,993; sh: 6,133; makefile: 3,443; xml: 1,805; ansic: 568; python: 65; cpp: 9; java: 9; tcl: 4
file content (15 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (105)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>
#include <math.h>

double e(void (*f)(char *)){
  char tmp[10];
  double x;
  f(tmp);
  x = atof(tmp);
  return exp(x);
}

double energy(double mass){
  return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
}