From: W. Trevor King Date: Fri, 5 Nov 2010 18:36:58 +0000 (-0400) Subject: Escape LaTeX backslashes in pysawsim.test.constant_rate. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08e16d49fb9720270363b951bdc310bfd6ba14af;p=sawsim.git Escape LaTeX backslashes in pysawsim.test.constant_rate. --- diff --git a/pysawsim/test/constant_rate.py b/pysawsim/test/constant_rate.py index 55d0656..7435b96 100644 --- a/pysawsim/test/constant_rate.py +++ b/pysawsim/test/constant_rate.py @@ -33,17 +33,17 @@ and a pulling velocity we have a loading rate -.. math:: df/dt = df/dx dx/dt = kv \;, +.. math:: df/dt = df/dx dx/dt = kv \\;, so -.. math:: f = kvt + f_0 \;. +.. math:: f = kvt + f_0 \\;. With an unfolding rate constant :math:`K`, the population follows .. math:: dp/dt = Kp - p(t) = exp(-tK) = exp(-(f-f_0)K/kv) = p(f) \;. + p(t) = exp(-tK) = exp(-(f-f_0)K/kv) = p(f) \\;. Therefore, a histogram of unfolding vs. force :math:`p(f)` normalized to :math:`p(0)=1` should follow @@ -69,7 +69,7 @@ from ..sawsim_histogram import sawsim_histogram def probability_distribution(x, params): """Exponential decay decay probability distribution. - .. math:: 1/\\tau \cdot exp(-x/\\tau) + .. math:: 1/\\tau \\cdot exp(-x/\\tau) """ p = params # convenient alias p[0] = abs(p[0]) # cannot normalize negative tau. @@ -84,7 +84,7 @@ class ExponentialModelFitter (HistogramModelFitter): Notes ----- - .. math:: y \\propto \cdot e^{-t/\tau} + .. math:: y \\propto \\cdot e^{-t/\\tau} """ self._model_data.counts = ( self.info['binwidth']*self.info['N']*probability_distribution(