Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for (( i = -10000; i <= 10000; i++ )); do
  4. echo "$i" | ./sin2 > valC.txt
  5. echo "scale=64;s($i)" | bc -l > valBC.txt
  6. echo "scale=64;a="`cat valC.txt`"-("`cat valBC.txt`");if(0>a)a*=-1;a" | bc -l >> result.txt
  7. echo "$i"
  8. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement