nfwshear.cpp File Reference

#include "nfwshear.h"

Functions

int main (int argc, char **argv)
int calculateShear (int argc, char **argv)
double getq2d (double s, double q, double theta, double phi)
double getf (double s, double q, double theta, double phi)
double getlambda (double x, double y, double m)
double simpsonRule (double x, double y, double a, double b, double f(double x, double y, double m))
double compSimpsonsRule (double x, double y, double a, double b, double f(double x, double y, double m))
double integral (double x, double y, double m0, double m, int numberOfSteps, double integrand(double x, double y, double m))
double sigma (double x, double y)
 Calculates the mass density at the point (x,y).
double totalmass (double x, double y)
 Calculates the total mass within an ellipse that contains the point (x,y).
double ax (double x, double y)
 Calculates Alpha_x at the point (x,y).
double ax (double x, double y, double m)
double ay (double x, double y)
 Calculates Alpha_y at the point (x,y).
double ay (double x, double y, double m)
double daxdx (double x, double y)
 Derviative of Alpha_x wrt x at the point (x,y).
double daxdx (double x, double y, double m)
double daxdy (double x, double y)
 Derviative of Alpha_x wrt y at the point (x,y).
double daxdy (double x, double y, double m)
double daydy (double x, double y)
 Derviative of Alpha_y wrt y at the point (x,y).
double daydy (double x, double y, double m)
double daydx (double x, double y)
 Derviative of Alpha_y wrt x at the point (x,y).
double daydx (double x, double y, double m)
double sigmaval (double x, double y, double m)
double dAdx (double x, double y, double m)
double dAdy (double x, double y, double m)
double dBdx (double x, double y, double m)
double dBdy (double x, double y, double m)
double daprimedx (double x, double y, double m)
double daprimedy (double x, double y, double m)
double dbprimedx (double x, double y, double m)
double dbprimedy (double x, double y, double m)
double dlambdadx (double x, double y, double m)
double dlambdady (double x, double y, double m)
double Acoefficient (double x, double y, double m)
double Bcoefficient (double x, double y, double m)
double romberg (double func(double z), double a, double b)
utils::DArray< DString > parseParameterFile (DString fileName)

Function Documentation

double Acoefficient ( double  x,
double  y,
double  m 
)

References getlambda().

Referenced by ax(), daxdx(), and daxdy().

double ax ( double  x,
double  y,
double  m 
)

References Acoefficient(), and sigmaval().

double ax ( double  x,
double  y 
)

Calculates Alpha_x at the point (x,y).

References ax(), compSimpsonsRule(), and q2d.

Referenced by ax(), and calculateShear().

double ay ( double  x,
double  y,
double  m 
)

References Bcoefficient(), and sigmaval().

double ay ( double  x,
double  y 
)

Calculates Alpha_y at the point (x,y).

References ay(), compSimpsonsRule(), and q2d.

Referenced by ay(), and calculateShear().

double Bcoefficient ( double  x,
double  y,
double  m 
)

References getlambda().

Referenced by ay(), daydx(), and daydy().

int calculateShear ( int  argc,
char **  argv 
)

double compSimpsonsRule ( double  x,
double  y,
double  a,
double  b,
double   fdouble x, double y, double m 
)

double dAdx ( double  x,
double  y,
double  m 
)

References daprimedx(), dbprimedx(), and getlambda().

Referenced by daxdx().

double dAdy ( double  x,
double  y,
double  m 
)

References daprimedy(), dbprimedy(), and getlambda().

Referenced by daxdy().

double daprimedx ( double  x,
double  y,
double  m 
)

References dlambdadx(), and getlambda().

Referenced by dAdx(), and dBdx().

double daprimedy ( double  x,
double  y,
double  m 
)

References dlambdady(), and getlambda().

Referenced by dAdy(), and dBdy().

double daxdx ( double  x,
double  y,
double  m 
)

References dAdx(), sigma(), and sigmaval().

double daxdx ( double  x,
double  y 
)

Derviative of Alpha_x wrt x at the point (x,y).

References Acoefficient(), compSimpsonsRule(), daxdx(), q2d, and sigmaval().

Referenced by calculateShear(), and daxdx().

double daxdy ( double  x,
double  y,
double  m 
)

References dAdy(), sigma(), and sigmaval().

double daxdy ( double  x,
double  y 
)

Derviative of Alpha_x wrt y at the point (x,y).

References Acoefficient(), compSimpsonsRule(), daxdy(), q2d, and sigmaval().

Referenced by calculateShear(), and daxdy().

double daydx ( double  x,
double  y,
double  m 
)

References dBdx(), sigma(), and sigmaval().

double daydx ( double  x,
double  y 
)

Derviative of Alpha_y wrt x at the point (x,y).

References Bcoefficient(), compSimpsonsRule(), daydx(), q2d, and sigmaval().

Referenced by daydx().

double daydy ( double  x,
double  y,
double  m 
)

References dBdy(), sigma(), and sigmaval().

double daydy ( double  x,
double  y 
)

Derviative of Alpha_y wrt y at the point (x,y).

References Bcoefficient(), compSimpsonsRule(), daydy(), q2d, and sigmaval().

Referenced by calculateShear(), and daydy().

double dBdx ( double  x,
double  y,
double  m 
)

References daprimedx(), dbprimedx(), and getlambda().

Referenced by daydx().

double dBdy ( double  x,
double  y,
double  m 
)

References daprimedy(), dbprimedy(), and getlambda().

Referenced by daydy().

double dbprimedx ( double  x,
double  y,
double  m 
)

References dlambdadx(), and getlambda().

Referenced by dAdx(), and dBdx().

double dbprimedy ( double  x,
double  y,
double  m 
)

References dlambdady(), and getlambda().

Referenced by dAdy(), and dBdy().

double dlambdadx ( double  x,
double  y,
double  m 
)

double denominator = pow(m*m*(a*a-b*b),2)+pow(x*x*+y*y,2)-2*m*m*(a*a-b*b)*(x*x-y*y); denominator = sqrt(denominator); double returnMe = x*(x*x+y*y)-x*m*m*(a*a-b*b)*(x*x-y*y); returnMe = returnMe/denominator; return returnMe + x;/*

Referenced by daprimedx(), and dbprimedx().

double dlambdady ( double  x,
double  y,
double  m 
)

double denominator = pow(m*m*(a*a-b*b),2)+pow(x*x*+y*y,2)-2*m*m*(a*a-b*b)*(x*x-y*y); denominator = sqrt(denominator); double returnMe = y*(x*x+y*y)+y*m*m*(a*a-b*b)*(x*x-y*y); returnMe = returnMe/denominator; return returnMe + y; /*

Referenced by daprimedy(), and dbprimedy().

double getf ( double  s,
double  q,
double  theta,
double  phi 
)

Referenced by calculateShear().

double getlambda ( double  x,
double  y,
double  m 
)

double getq2d ( double  s,
double  q,
double  theta,
double  phi 
)

Referenced by calculateShear().

double integral ( double  x,
double  y,
double  m0,
double  m,
int  numberOfSteps,
double   integranddouble x, double y, double m 
)

References compSimpsonsRule().

int main ( int  argc,
char **  argv 
)

References calculateShear().

utils::DArray<DString> parseParameterFile ( DString  fileName  ) 

Referenced by calculateShear().

double romberg ( double   funcdouble z,
double  a,
double  b 
)

double sigma ( double  x,
double  y 
)

Calculates the mass density at the point (x,y).

References q2d, and sigmaval().

Referenced by calculateShear(), daxdx(), daxdy(), daydx(), daydy(), and Functions::doFunction().

double sigmaval ( double  x,
double  y,
double  m 
)

double simpsonRule ( double  x,
double  y,
double  a,
double  b,
double   fdouble x, double y, double m 
)

double totalmass ( double  x,
double  y 
)

Calculates the total mass within an ellipse that contains the point (x,y).

References compSimpsonsRule(), q2d, and sigmaval().


Generated on Sat Feb 6 13:04:49 2010 by  doxygen 1.5.7.1