[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Udskriv "funktion" i C



Hej,

Jeg har en funktion i C, som jeg gerne vil have skrevet ud. Hvordan gør man lige det?

Altså:

Jeg har:

real f (real x, void * params) {
  real alpha = *(real *) params;
  calls+=1;
  return x*x;
}

int main(void) {
  gsl_integration_workspace * w
    = gsl_integration_workspace_alloc(1000);
  gsl_function F;
  F.function=&f;
  printf("f(x) = ETELLERANDET \n",F.function);
  return 0;
}

Hvad skal der stå i stedet for ETELLERANDET? Jeg vil have skrevet ud

f(x) = x*x

Mvh
Anders


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *