#! /bin/bash # Last edited on 2005-08-20 18:53:02 by stolfi cmd=${0##*/} usage="${cmd} [-show [-timeout NSECS]] NAME TMIN TMAX" # Plots the approximate and true solutions for {SPTimeOnlySolveG3C1}. function error() { echo "${cmd}: $1" >&2; echo "usage: ${usage}" >&2; exit 1; } show=0 timeout=0 while [ $# -gt 0 ]; do case "$1" in -show ) show=1; shift ;; -timeout ) timeout="$2"; shift; shift ;; -* ) error "unrecognized option $1"; exit 1 ;; * ) break;; esac; done if [ $# -ne 3 ]; then error "wrong number of parameters"; fi name="$1"; shift; tmin="$1"; shift; tmax="$1"; shift; pltfile="${name}.plt" valepsfile="${name}-val.eps" difepsfile="${name}-dif.eps" resepsfile="${name}-res.eps" # Create gnuplot script: gnuplot <