? posfun;

Calculate

? posfun;

Calculate

### posfun

Run Example
```(%i1)x(t) := r(t) * sin(theta(t));
(%o1)                     x(t) := r(t) sin(theta(t))
(%i2) y(t) := r(t) * cos(theta(t));
(%o2)                     y(t) := r(t) cos(theta(t))
(%i3) declare (slope,constant);
(%o3)                                done
(%i4) declare (xvel, constant);
(%o4)                                done
(%i5) declare (slope,real);
(%o5)                                done
(%i6) declare (xvel, real);
(%o6)                                done
(%i7) diff(x(t),t) = xvel;
d                 d
(%o7) r(t) cos(theta(t)) (-- (theta(t))) + (-- (r(t))) sin(theta(t)) = xvel
dt                dt
(%i8) diff(y(t),t) = xvel * slope;
d                                              d
(%o8) (-- (r(t))) cos(theta(t)) - r(t) sin(theta(t)) (-- (theta(t))) =
dt                                             dt
slope xvel
(%i9) declare (soundvel,constant);
(%o9)                                done
(%i10) declare (soundvel,posfun);
(%o10)                               done
(%i11) declare (f0, constant);
(%o11)                               done
(%i12) eq20: diff(diff(y(t),t),t) = 0;
2
d
(%o12) - r(t) sin(theta(t)) (--- (theta(t)))
2
dt
d             2      d
- r(t) cos(theta(t)) (-- (theta(t)))  - 2 (-- (r(t))) sin(theta(t))
dt                   dt
2
d                 d
(-- (theta(t))) + (--- (r(t))) cos(theta(t)) = 0
dt                  2
dt
(%i13) let (diff(r(t),t), (f(t)/f0-1)*soundvel);
d                       f(t)
(%o13)                 -- (r(t)) --> soundvel (---- - 1)
dt                       f0
(%i14) eq30: diff(y(t),t) = slope * diff(x(t),t);
d                                              d
(%o14) (-- (r(t))) cos(theta(t)) - r(t) sin(theta(t)) (-- (theta(t))) =
dt                                             dt
d                 d
slope (r(t) cos(theta(t)) (-- (theta(t))) + (-- (r(t))) sin(theta(t)))
dt                dt
(%i15) eq40: letsimp(solve([eq30],r(t)));
(%o15) [r(t) =
soundvel cos(theta(t))
- -------------------------------------------------------------------
d                                     d
sin(theta(t)) (-- (theta(t))) + slope cos(theta(t)) (-- (theta(t)))
dt                                    dt
slope soundvel sin(theta(t))
+ -------------------------------------------------------------------
d                                     d
sin(theta(t)) (-- (theta(t))) + slope cos(theta(t)) (-- (theta(t)))
dt                                    dt
soundvel f(t) cos(theta(t))
+ -------------------------------------------------------------------------
d                                        d
f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))
dt                                       dt
+ (- (slope soundvel f(t) sin(theta(t)))
d                                        d
/(f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))))]
dt                                       dt
(%i16) eq50: letsimp(diff(eq40,t));
soundvel f(t)
(%o16) [- soundvel + ------------- =
f0
d
slope soundvel cos(theta(t)) (-- (theta(t)))
dt
-------------------------------------------------------------------
d                                     d
sin(theta(t)) (-- (theta(t))) + slope cos(theta(t)) (-- (theta(t)))
dt                                    dt
d
soundvel sin(theta(t)) (-- (theta(t)))
dt
+ -------------------------------------------------------------------
d                                     d
sin(theta(t)) (-- (theta(t))) + slope cos(theta(t)) (-- (theta(t)))
dt                                    dt
d
soundvel (-- (f(t))) cos(theta(t))
dt
+ -------------------------------------------------------------------------
d                                        d
f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))
dt                                       dt
d
+ (- (slope soundvel (-- (f(t))) sin(theta(t)))
dt
d                                        d
/(f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))))
dt                                       dt
d
+ (- (slope soundvel f(t) cos(theta(t)) (-- (theta(t))))
dt
d                                        d
/(f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))))
dt                                       dt
d
+ (- (soundvel f(t) sin(theta(t)) (-- (theta(t))))
dt
d                                        d
/(f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))))
dt                                       dt
2
d
+ (soundvel cos(theta(t)) (sin(theta(t)) (--- (theta(t)))
2
dt
2
d                                      d             2
+ slope cos(theta(t)) (--- (theta(t))) - slope sin(theta(t)) (-- (theta(t)))
2                                    dt
dt
d             2
+ cos(theta(t)) (-- (theta(t))) ))
dt
d                                     d              2
/(sin(theta(t)) (-- (theta(t))) + slope cos(theta(t)) (-- (theta(t))))
dt                                    dt
2
d
+ (- (slope soundvel sin(theta(t)) (sin(theta(t)) (--- (theta(t)))
2
dt
2
d                                      d             2
+ slope cos(theta(t)) (--- (theta(t))) - slope sin(theta(t)) (-- (theta(t)))
2                                    dt
dt
d             2
+ cos(theta(t)) (-- (theta(t))) ))
dt
d                                     d              2
/(sin(theta(t)) (-- (theta(t))) + slope cos(theta(t)) (-- (theta(t)))) )
dt                                    dt
2
d
+ (- (soundvel f(t) cos(theta(t)) (f0 sin(theta(t)) (--- (theta(t)))
2
dt
2
d
+ f0 slope cos(theta(t)) (--- (theta(t)))
2
dt
d             2
- f0 slope sin(theta(t)) (-- (theta(t)))
dt
d             2
+ f0 cos(theta(t)) (-- (theta(t))) ))
dt
d                                        d              2
/(f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))) )
dt                                       dt
2
d
+ (slope soundvel f(t) sin(theta(t)) (f0 sin(theta(t)) (--- (theta(t)))
2
dt
2
d
+ f0 slope cos(theta(t)) (--- (theta(t)))
2
dt
d             2
- f0 slope sin(theta(t)) (-- (theta(t)))
dt
d             2
+ f0 cos(theta(t)) (-- (theta(t))) ))
dt
d                                        d              2
/(f0 sin(theta(t)) (-- (theta(t))) + f0 slope cos(theta(t)) (-- (theta(t)))) ]
dt                                       dt
(%i17) ```
Run Example
```globalsolve: true;
(%o1)                                true
(%i2) realonly: true;
(%o2)                                true
(%i3) /* Standard (x,y)->
(r,theta) coordinate translation */x(t) := r(t) * cos(theta(t));
(%o3)                     x(t) := r(t) cos(theta(t))
(%i4) y(t) := r(t) * sin(theta(t));
(%o4)                     y(t) := r(t) sin(theta(t))
(%i5) /* Constant course assumption */declare (slope,constant);
(%o5)                                done
(%i6) declare (slope,real);
(%o6)                                done
(%i7) declare (yintercept,constant);
(%o7)                                done
(%i8) declare (yintercept, real);
(%o8)                                done
(%i9) y(t)=slope * x(t) + yintercept;
(%o9)     r(t) sin(theta(t)) = slope r(t) cos(theta(t)) + yintercept
(%i10) eq1: y(t)=slope * x(t) + yintercept;
(%o10)    r(t) sin(theta(t)) = slope r(t) cos(theta(t)) + yintercept
(%i11) /* Known & constant sound velocity */declare (soundvel,constant);
(%o11)                               done
(%i12) assume(soundvel>
0);
(%o12)                          [0 < soundvel]
(%i13) /* Known and constant base frequency */declare (basefrequency, constant);
(%o13)                               done
(%i14) assume(basefrequency>
0);
(%o14)                        [0 < basefrequency]
(%i15) /* f-- observed frequency. Standard doppler equation*/declare(f, real);
(%o15)                               done
(%i16) declare (f, posfun);
(%o16)                               done
(%i17) let (diff(r(t),t), (f(t)/basefrequency-1)*soundvel);
d                           f(t)
(%o17)            -- (r(t)) --> soundvel (------------- - 1)
dt                      basefrequency
(%i18) diff(r(t),t) = (f(t)/basefrequency-1)*soundvel;
d                         f(t)
(%o18)             -- (r(t)) = soundvel (------------- - 1)
dt                    basefrequency
(%i19) declare (A,constant);
(%o19)                               done
(%i20) declare (A,real);
(%o20)                               done
(%i21) declare (c0,constant);
(%o21)                               done
(%i22) declare (c0,real);
(%o22)                               done
(%i23) assume(c0>
0);
(%o23)                             [0 < c0]
(%i24) eq2a: theta(t) = arctan(slope + A/(t-c0));
A
(%o24)                 theta(t) = arctan(------ + slope)
t - c0
(%i25) /* Differentiate eq1 and solve for r(t) */eq3: letsimp(solve([diff(y(t),t) = slope * diff(x(t),t)],r(t)));
(%o25) [r(t) =
slope soundvel cos(theta(t))
- -------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
soundvel sin(theta(t))
+ -------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
+ (slope soundvel f(t) cos(theta(t)))/(basefrequency slope sin(theta(t))
d                                             d
(-- (theta(t))) + basefrequency cos(theta(t)) (-- (theta(t))))
dt                                            dt
+ (- (soundvel f(t) sin(theta(t)))/(basefrequency slope sin(theta(t))
d                                             d
(-- (theta(t))) + basefrequency cos(theta(t)) (-- (theta(t)))))]
dt                                            dt
(%i26) /* Differentiate eq3 */eq4: letsimp(diff(eq3,t));
soundvel f(t)
(%o26) [- soundvel + ------------- =
basefrequency
d
soundvel cos(theta(t)) (-- (theta(t)))
dt
-------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
d
slope soundvel sin(theta(t)) (-- (theta(t)))
dt
+ -------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
d
+ (slope soundvel (-- (f(t))) cos(theta(t)))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t))))
dt
d
+ (- (soundvel (-- (f(t))) sin(theta(t)))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t)))))
dt
d
+ (- (soundvel f(t) cos(theta(t)) (-- (theta(t))))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t)))))
dt
d
+ (- (slope soundvel f(t) sin(theta(t)) (-- (theta(t))))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t)))))
dt
2
d
+ (slope soundvel cos(theta(t)) (slope sin(theta(t)) (--- (theta(t)))
2
dt
2
d                                d             2
+ cos(theta(t)) (--- (theta(t))) - sin(theta(t)) (-- (theta(t)))
2                              dt
dt
d             2
+ slope cos(theta(t)) (-- (theta(t))) ))
dt
d                               d              2
/(slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t))))
dt                              dt
2
d
+ (- (soundvel sin(theta(t)) (slope sin(theta(t)) (--- (theta(t)))
2
dt
2
d                                d             2
+ cos(theta(t)) (--- (theta(t))) - sin(theta(t)) (-- (theta(t)))
2                              dt
dt
d             2
+ slope cos(theta(t)) (-- (theta(t))) ))
dt
d                               d              2
/(slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))) )
dt                              dt
+ (- (slope soundvel f(t) cos(theta(t))
2
d
(basefrequency slope sin(theta(t)) (--- (theta(t)))
2
dt
2
d
+ basefrequency cos(theta(t)) (--- (theta(t)))
2
dt
d             2
- basefrequency sin(theta(t)) (-- (theta(t)))
dt
d             2
+ basefrequency slope cos(theta(t)) (-- (theta(t))) ))
dt
d
/expt(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t))), 2))
dt
+ (soundvel f(t) sin(theta(t)) (basefrequency slope sin(theta(t))
2                                              2
d                                              d
(--- (theta(t))) + basefrequency cos(theta(t)) (--- (theta(t)))
2                                              2
dt                                             dt
d             2
- basefrequency sin(theta(t)) (-- (theta(t)))
dt
d             2
+ basefrequency slope cos(theta(t)) (-- (theta(t))) ))
dt
d
/expt(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t))), 2)]
dt
(%i27) ```
Run Example
```globalsolve: true;
(%o1)                                true
(%i2) realonly: true;
(%o2)                                true
(%i3) /* Standard (x,y)->
(r,theta) coordinate translation */x(t) := r(t) * cos(theta(t));
(%o3)                     x(t) := r(t) cos(theta(t))
(%i4) y(t) := r(t) * sin(theta(t));
(%o4)                     y(t) := r(t) sin(theta(t))
(%i5) /* Constant course assumption */declare (slope,constant);
(%o5)                                done
(%i6) declare (slope,real);
(%o6)                                done
(%i7) declare (yintercept,constant);
(%o7)                                done
(%i8) declare (yintercept, real);
(%o8)                                done
(%i9) y(t)=slope * x(t) + yintercept;
(%o9)     r(t) sin(theta(t)) = slope r(t) cos(theta(t)) + yintercept
(%i10) eq1: y(t)=slope * x(t) + yintercept;
(%o10)    r(t) sin(theta(t)) = slope r(t) cos(theta(t)) + yintercept
(%i11) /* Known & constant sound velocity */declare (soundvel,constant);
(%o11)                               done
(%i12) assume(soundvel>
0);
(%o12)                          [0 < soundvel]
(%i13) /* Known and constant base frequency */declare (basefrequency, constant);
(%o13)                               done
(%i14) assume(basefrequency>
0);
(%o14)                        [0 < basefrequency]
(%i15) /* f-- observed frequency. Standard doppler equation*/declare(f, real);
(%o15)                               done
(%i16) declare (f, posfun);
(%o16)                               done
(%i17) let (diff(r(t),t), (f(t)/basefrequency-1)*soundvel);
d                           f(t)
(%o17)            -- (r(t)) --> soundvel (------------- - 1)
dt                      basefrequency
(%i18) diff(r(t),t) = (f(t)/basefrequency-1)*soundvel;
d                         f(t)
(%o18)             -- (r(t)) = soundvel (------------- - 1)
dt                    basefrequency
(%i19) /* Differentiate eq1 and solve for r(t) */eq3: letsimp(solve([diff(y(t),t) = slope * diff(x(t),t)],r(t)));
(%o19) [r(t) =
slope soundvel cos(theta(t))
- -------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
soundvel sin(theta(t))
+ -------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
+ (slope soundvel f(t) cos(theta(t)))/(basefrequency slope sin(theta(t))
d                                             d
(-- (theta(t))) + basefrequency cos(theta(t)) (-- (theta(t))))
dt                                            dt
+ (- (soundvel f(t) sin(theta(t)))/(basefrequency slope sin(theta(t))
d                                             d
(-- (theta(t))) + basefrequency cos(theta(t)) (-- (theta(t)))))]
dt                                            dt
(%i20) /* Differentiate eq3 and solve for slope */eq4: letsimp(diff(eq3,t));
soundvel f(t)
(%o20) [- soundvel + ------------- =
basefrequency
d
soundvel cos(theta(t)) (-- (theta(t)))
dt
-------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
d
slope soundvel sin(theta(t)) (-- (theta(t)))
dt
+ -------------------------------------------------------------------
d                               d
slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))
dt                              dt
d
+ (slope soundvel (-- (f(t))) cos(theta(t)))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t))))
dt
d
+ (- (soundvel (-- (f(t))) sin(theta(t)))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t)))))
dt
d
+ (- (soundvel f(t) cos(theta(t)) (-- (theta(t))))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t)))))
dt
d
+ (- (slope soundvel f(t) sin(theta(t)) (-- (theta(t))))
dt
d
/(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t)))))
dt
2
d
+ (slope soundvel cos(theta(t)) (slope sin(theta(t)) (--- (theta(t)))
2
dt
2
d                                d             2
+ cos(theta(t)) (--- (theta(t))) - sin(theta(t)) (-- (theta(t)))
2                              dt
dt
d             2
+ slope cos(theta(t)) (-- (theta(t))) ))
dt
d                               d              2
/(slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t))))
dt                              dt
2
d
+ (- (soundvel sin(theta(t)) (slope sin(theta(t)) (--- (theta(t)))
2
dt
2
d                                d             2
+ cos(theta(t)) (--- (theta(t))) - sin(theta(t)) (-- (theta(t)))
2                              dt
dt
d             2
+ slope cos(theta(t)) (-- (theta(t))) ))
dt
d                               d              2
/(slope sin(theta(t)) (-- (theta(t))) + cos(theta(t)) (-- (theta(t)))) )
dt                              dt
+ (- (slope soundvel f(t) cos(theta(t))
2
d
(basefrequency slope sin(theta(t)) (--- (theta(t)))
2
dt
2
d
+ basefrequency cos(theta(t)) (--- (theta(t)))
2
dt
d             2
- basefrequency sin(theta(t)) (-- (theta(t)))
dt
d             2
+ basefrequency slope cos(theta(t)) (-- (theta(t))) ))
dt
d
/expt(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t))), 2))
dt
+ (soundvel f(t) sin(theta(t)) (basefrequency slope sin(theta(t))
2                                              2
d                                              d
(--- (theta(t))) + basefrequency cos(theta(t)) (--- (theta(t)))
2                                              2
dt                                             dt
d             2
- basefrequency sin(theta(t)) (-- (theta(t)))
dt
d             2
+ basefrequency slope cos(theta(t)) (-- (theta(t))) ))
dt
d
/expt(basefrequency slope sin(theta(t)) (-- (theta(t)))
dt
d
+ basefrequency cos(theta(t)) (-- (theta(t))), 2)]
dt
(%i21) eq6: trigsimp(solve(eq4, slope));
2                                          2
(%o21) [slope = (sqrt((f (t) - 2 basefrequency f(t) + basefrequency )
2
d              2                               d           d
(--- (theta(t)))  + (2 basefrequency - 2 f(t)) (-- (f(t))) (-- (theta(t)))
2                                            dt          dt
dt
2
d                       2                                             2
(--- (theta(t))) + (- 8 f (t) + 16 basefrequency f(t) - 8 basefrequency )
2
dt
d             4    d         2  d             2
(-- (theta(t)))  + (-- (f(t)))  (-- (theta(t))) )
dt                 dt           dt
2
+ ((2 f(t) - 2 basefrequency) sin (theta(t)) - f(t) + basefrequency)
2
d
(--- (theta(t))) + (2 basefrequency - 2 f(t)) cos(theta(t)) sin(theta(t))
2
dt
d             2    d              d             2             d
(-- (theta(t)))  + (-- (f(t)) - 2 (-- (f(t))) sin (theta(t))) (-- (theta(t))))
dt                 dt             dt                          dt
2
d
/((2 f(t) - 2 basefrequency) cos(theta(t)) sin(theta(t)) (--- (theta(t)))
2
dt
2
+ ((2 f(t) - 2 basefrequency) sin (theta(t)) + 2 f(t) - 2 basefrequency)
d             2      d
(-- (theta(t)))  - 2 (-- (f(t))) cos(theta(t)) sin(theta(t))
dt                   dt
d                                  2
(-- (theta(t)))), slope = - (sqrt((f (t) - 2 basefrequency f(t)
dt
2
2   d              2                               d
+ basefrequency ) (--- (theta(t)))  + (2 basefrequency - 2 f(t)) (-- (f(t)))
2                                            dt
dt
2
d               d                       2
(-- (theta(t))) (--- (theta(t))) + (- 8 f (t) + 16 basefrequency f(t)
dt                2
dt
2   d             4    d         2  d             2
- 8 basefrequency ) (-- (theta(t)))  + (-- (f(t)))  (-- (theta(t))) )
dt                 dt           dt
2
+ ((2 f(t) - 2 basefrequency) cos (theta(t)) - f(t) + basefrequency)
2
d
(--- (theta(t))) + (2 f(t) - 2 basefrequency) cos(theta(t)) sin(theta(t))
2
dt
d             2    d              d             2             d
(-- (theta(t)))  + (-- (f(t)) - 2 (-- (f(t))) cos (theta(t))) (-- (theta(t))))
dt                 dt             dt                          dt
2
d
/((2 f(t) - 2 basefrequency) cos(theta(t)) sin(theta(t)) (--- (theta(t)))
2
dt
2
+ ((2 basefrequency - 2 f(t)) cos (theta(t)) + 4 f(t) - 4 basefrequency)
d             2      d                                       d
(-- (theta(t)))  - 2 (-- (f(t))) cos(theta(t)) sin(theta(t)) (-- (theta(t))))]
dt                   dt                                      dt
(%i22) /* Now we have a number of estimates for the slope constant. *//* We can use any statistical technique to estimate the actual constant *//* Constant speed assumption */eq7: letsimp(diff(letsimp(diff(x(t),t)),t)) = 0;
2
d
(%o22) (- basefrequency r(t) sin(theta(t)) (--- (theta(t)))
2
dt
d             2
- basefrequency r(t) cos(theta(t)) (-- (theta(t)))
dt
d
- 2 soundvel f(t) sin(theta(t)) (-- (theta(t)))
dt
d
+ 2 basefrequency soundvel sin(theta(t)) (-- (theta(t)))
dt
d
+ soundvel (-- (f(t))) cos(theta(t)))/basefrequency = 0
dt
(%i23) eq8: solve(eq7, r(t));
(%o23) [r(t) = - ((2 soundvel f(t) - 2 basefrequency soundvel) sin(theta(t))
d                          d
(-- (theta(t))) - soundvel (-- (f(t))) cos(theta(t)))
dt                         dt
2
d
/(basefrequency sin(theta(t)) (--- (theta(t)))
2
dt
d             2
+ basefrequency cos(theta(t)) (-- (theta(t))) )]
dt
(%i24) eq9: subst(eq8, eq1);
(%o24) - (sin(theta(t)) ((2 soundvel f(t) - 2 basefrequency soundvel)
d                          d
sin(theta(t)) (-- (theta(t))) - soundvel (-- (f(t))) cos(theta(t))))
dt                         dt
2
d
/(basefrequency sin(theta(t)) (--- (theta(t)))
2
dt
d             2
+ basefrequency cos(theta(t)) (-- (theta(t))) ) =
dt
yintercept - (slope cos(theta(t)) ((2 soundvel f(t) - 2 basefrequency soundvel)
d                          d
sin(theta(t)) (-- (theta(t))) - soundvel (-- (f(t))) cos(theta(t))))
dt                         dt
2
d
/(basefrequency sin(theta(t)) (--- (theta(t)))
2
dt
d             2
+ basefrequency cos(theta(t)) (-- (theta(t))) )
dt
(%i25) eq10: solve(eq9, yintercept);
(%o25) [yintercept = - (((2 soundvel f(t) - 2 basefrequency soundvel)
2
sin (theta(t)) + (2 basefrequency slope soundvel - 2 slope soundvel f(t))
d
cos(theta(t)) sin(theta(t))) (-- (theta(t)))
dt
d
- soundvel (-- (f(t))) cos(theta(t)) sin(theta(t))
dt
d             2
+ slope soundvel (-- (f(t))) cos (theta(t)))
dt
2
d
/(basefrequency sin(theta(t)) (--- (theta(t)))
2
dt
d             2
+ basefrequency cos(theta(t)) (-- (theta(t))) )]
dt
(%i26) /* Now we have a number of estimates for the yintercept constant. *//* We can use any statistical technique to estimate the actual constant *//* This gives us r(theta) in terms of slope and y_intercept*/eq_rt: solve(eq1, r(t));
yintercept
(%o26)           [r(t) = -----------------------------------]
sin(theta(t)) - slope cos(theta(t))
(%i27) tlimswitch: true;
(%o27)                               true
(%i28) eq11: expandwrt_factored (eq6, basefrequency);
2
2     d              2
(%o28) [slope = (sqrt(f (t) (--- (theta(t)))
2
dt
2                                  2
d              2                2  d              2
- 2 basefrequency f(t) (--- (theta(t)))  + basefrequency  (--- (theta(t)))
2                                  2
dt                                 dt
2
d           d               d
- 2 f(t) (-- (f(t))) (-- (theta(t))) (--- (theta(t)))
dt          dt                2
dt
2
d           d               d
+ 2 basefrequency (-- (f(t))) (-- (theta(t))) (--- (theta(t)))
dt          dt                2
dt
2     d             4                          d             4
- 8 f (t) (-- (theta(t)))  + 16 basefrequency f(t) (-- (theta(t)))
dt                                       dt
2  d             4    d         2  d             2
- 8 basefrequency  (-- (theta(t)))  + (-- (f(t)))  (-- (theta(t))) )
dt                 dt           dt
2
+ ((2 f(t) - 2 basefrequency) sin (theta(t)) - f(t) + basefrequency)
2
d
(--- (theta(t))) + (2 basefrequency - 2 f(t)) cos(theta(t)) sin(theta(t))
2
dt
d             2    d              d             2             d
(-- (theta(t)))  + (-- (f(t)) - 2 (-- (f(t))) sin (theta(t))) (-- (theta(t))))
dt                 dt             dt                          dt
2
d
/((2 f(t) - 2 basefrequency) cos(theta(t)) sin(theta(t)) (--- (theta(t)))
2
dt
2
+ ((2 f(t) - 2 basefrequency) sin (theta(t)) + 2 f(t) - 2 basefrequency)
d             2      d
(-- (theta(t)))  - 2 (-- (f(t))) cos(theta(t)) sin(theta(t))
dt                   dt
2
d                                 2     d              2
(-- (theta(t)))), slope = - (sqrt(f (t) (--- (theta(t)))
dt                                        2
dt
2                                  2
d              2                2  d              2
- 2 basefrequency f(t) (--- (theta(t)))  + basefrequency  (--- (theta(t)))
2                                  2
dt                                 dt
2
d           d               d
- 2 f(t) (-- (f(t))) (-- (theta(t))) (--- (theta(t)))
dt          dt                2
dt
2
d           d               d
+ 2 basefrequency (-- (f(t))) (-- (theta(t))) (--- (theta(t)))
dt          dt                2
dt
2     d             4                          d             4
- 8 f (t) (-- (theta(t)))  + 16 basefrequency f(t) (-- (theta(t)))
dt                                       dt
2  d             4    d         2  d             2
- 8 basefrequency  (-- (theta(t)))  + (-- (f(t)))  (-- (theta(t))) )
dt                 dt           dt
2
+ ((2 f(t) - 2 basefrequency) cos (theta(t)) - f(t) + basefrequency)
2
d
(--- (theta(t))) + (2 f(t) - 2 basefrequency) cos(theta(t)) sin(theta(t))
2
dt
d             2    d              d             2             d
(-- (theta(t)))  + (-- (f(t)) - 2 (-- (f(t))) cos (theta(t))) (-- (theta(t))))
dt                 dt             dt                          dt
2
d
/((2 f(t) - 2 basefrequency) cos(theta(t)) sin(theta(t)) (--- (theta(t)))
2
dt
2
+ ((2 basefrequency - 2 f(t)) cos (theta(t)) + 4 f(t) - 4 basefrequency)
d             2      d                                       d
(-- (theta(t)))  - 2 (-- (f(t))) cos(theta(t)) sin(theta(t)) (-- (theta(t))))]
dt                   dt                                      dt
(%i29) ratcoef(eq11, basefrequency, 2);
(%o29)                          [0 = 0, 0 = 0]
(%i30) ratcoef(eq11, basefrequency, 1);
(%o30)                          [0 = 0, 0 = 0]
(%i31) ratcoef(eq11, basefrequency, 0);
2
2                 d
(%o31) [slope = ((2 sin (theta(t)) - 1) (--- (theta(t)))
2
dt
d             2
- 2 cos(theta(t)) sin(theta(t)) (-- (theta(t))) )
dt
2
d
/(2 cos(theta(t)) sin(theta(t)) (--- (theta(t)))
2
dt
2                 d             2
+ (2 sin (theta(t)) + 2) (-- (theta(t))) ),
dt
2
2                 d
slope = - ((2 cos (theta(t)) - 1) (--- (theta(t)))
2
dt
d             2
+ 2 cos(theta(t)) sin(theta(t)) (-- (theta(t))) )
dt
2
d
/(2 cos(theta(t)) sin(theta(t)) (--- (theta(t)))
2
dt
2             d             2
+ (4 - 2 cos (theta(t))) (-- (theta(t))) )]
dt
(%i32) eq12: solve([eq4, slope=0], basefrequency);
(%o32)                                []
(%i33) ```

Help for Posfun