Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

264
Views
Is there any library to do math calculations in C? as well as Numpy in Python
over 4 years ago · Andres Camilo Beltran Cordoba
1 answers
Answer question

0

you can use math.h es as it defines several math functions and a macro.

All functions available in this library take double as an argument and return double as a result.

For example:

double fabs(double x) – The C library function double fabs(double x) returns the absolute value of x.

 syntax : double fabs(double x)

 // C code to illustrate // the use of fabs function #include <stdio.h> #include <math.h> int main () { int a, b; a = 1234; b = -344; printf("The absolute value of %d is %lf\n", a, fabs(a)); printf("The absolute value of %d is %lf\n", b, fabs(b)); return(0); }

Output:

 The absolute value of 1234 is 1234.000000 The absolute value of -344 is 344.000000

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!