<commit_before>#include <math.h>
#include <galpy_potentials.h>
//PowerSphericalPotential
//2  arguments: amp, alpha
double PowerSphericalPotentialRforce(double R,double Z, double phi,
				      double t,
				      int nargs, double *args){
  //Get args
  double amp= *args++;
  double alpha= *args;
  //Calculate Rforce
  return - amp * R * pow(R*R+Z*Z,-0.5*alpha);
}
double PowerSphericalPotentialPlanarRforce(double R,double phi,
					   double t,
					   int nargs, double *args){
  //Get args
  double amp= *args++;
  double alpha= *args;
  //Calculate Rforce
  return - amp * pow(R,-alpha + 1.);
}
double PowerSphericalPotentialzforce(double R,double Z,double phi,
				     double t,<commit_msg>add C potential implementations of remaining potentials<commit_after>#include <math.h>
#include <galpy_potentials.h>
//PowerSphericalPotential
//2  arguments: amp, alpha
double PowerSphericalPotentialEval(double R,double Z, double phi,
				   double t,
				   int nargs, double *args){
  //Get args
  double amp= *args++;
  double alpha= *args;
  //Calculate Rforce
  if ( alpha == 2. )
    return 0.5 * amp * log ( R*R+Z*Z);
  else
    return - amp * pow(R*R+Z*Z,1.-0.5*alpha) / (alpha - 2.);
}
double PowerSphericalPotentialRforce(double R,double Z, double phi,
				      double t,
				      int nargs, double *args){
  //Get args
  double amp= *args++;
  double alpha= *args;
  //Calculate Rforce
  return - amp * R * pow(R*R+Z*Z,-0.5*alpha);
}
double PowerSphericalPotentialPlanarRforce(double R,double phi,
					   double t,
					   int nargs, double *args){
  //Get args
  double amp= *args++;
  double alpha= *args;
  //Calculate Rforce
  return - amp * pow(R,-alpha + 1.);
}
double PowerSphericalPotentialzforce(double R,double Z,double phi,
				     double t,
{'fraction_non_alphanumeric': 0.12895927601809956, 'fraction_numerical': 0.008484162895927601, 'mean_word_length': 3.2219570405727924, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1086397', 'n_tokens_mistral': 695, 'n_tokens_neox': 596, 'n_words': 173}