LinearSinCosToQuadCos:

Path: Math/Trigonometry

% Compute quadratic coefficients on cos(x) from linear eqn
 A*sin(x)+B*cos(x)+C=0
   
 Type LinearSinCosToQuadCos for a demo.

--------------------------------------------------------------------------
   Form:
   p = LinearSinCosToQuadCos( a, b, c )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   a         (1,1)   Coefficient on sin(x)
   b         (1,1)   Coefficient on cos(x)
   c         (1,1)   Linear term

   -------
   Outputs
   -------
   p         (1,3)   Polynomial coefficients. Quadratic of cos(x)

--------------------------------------------------------------------------

Children:

Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle

Back to the Math Module page