libm Questions

2

round function in jq doesn't work. $ jq '10.01 | round' jq: error: round/0 is not defined at <top-level>, line 1: 10.01 | round jq: 1 compile error $ jq --help jq - commandline JSON proces...
Janessa asked 14/6, 2019 at 7:35

1

I already know how to build the new version of Glibc (e.g. 2.3) beside the older version (e.g. 2.19). I followed the instructions in https://www.tldp.org/HOWTO/html_single/Glibc-Install-HOWTO/ Bu...
Gambrinus asked 20/11, 2019 at 22:50

3

Solved

With some compilers, using pow and certain other functions in a C program requires linking to the m library. However, some compilers don't require this and would error out on linking to the m libra...
Aube asked 28/9, 2015 at 6:9

1

Solved

As far as I know some math functions are contained in libc, while others are in libm. I've discovered that experimentally: $ nm --dynamic --defined-only /lib/x86_64-linux-gnu/libm.so.6 | grep -w a...
Casar asked 5/1, 2019 at 18:21

3

Sample code for fmod: #include <stdio.h> #include <math.h> int main(void) { double x = 0.14527, y = 3.14159; printf("fmod(x, y) = %.6lf\n", fmod(x, y)); return 0; } Compili...
Development asked 9/7, 2010 at 3:59

2

I am having trouble compiling code intended for 32bit unix system on my 64bit Ubuntu, Linux. Does anyone have any ideas what may be the problem? gcc main.o test.o render.o transform.o model.o vect...
Globulin asked 3/5, 2015 at 12:32

3

Solved

The GCC implementation of the C mathematical library on Debian systems has apparently an (IEEE 754-2008)-compliant implementation of the function exp, implying that rounding shall always be correct...
Smothers asked 3/6, 2017 at 16:52

5

Solved

I'm very new to C and I have this code: #include <stdio.h> #include <math.h> int main(void) { double x = 0.5; double result = sqrt(x); printf("The square root of %lf is %lf\n...
Betthezul asked 2/5, 2012 at 6:53

3

Solved

Is it a standard to have only dynamic libraries mostly without their static version? I am particularly asking about math library. In my fedora 17 (linux machine on Intel 32 processor), I have lates...
Hatshepsut asked 8/10, 2013 at 4:0

4

Solved

I have native source code written in C that I would like to run on my Android device (Nexus 7). I already successfully did lots of research and online tutorials on running native code on Android us...
Dieter asked 6/3, 2013 at 14:50

1

Solved

As per Wikipedia there are many variants of standard C library based on operating system and compilers. Ref: http://en.wikipedia.org/wiki/C_standard_library But I want to understand that how ple...
Profundity asked 5/12, 2013 at 9:43

2

#include <math.h> #include <stdio.h> int main() { printf("%f", roundf(3.14)); } I compile above code (hasn't use -lm), add use ldd a.out, the result is linux-vdso.so.1 => (0x000...
Osteoclasis asked 25/4, 2013 at 0:25

1

I want to download and compile the source code for libm (GNU's may library). Can someone point me to the correct location / repository?
Stinson asked 18/7, 2012 at 20:51

0

I have a problem during try to compile sources with recent android-9 x86 platform. Primary question: why static library libm.a and dynamic libm.so are different? Problem is i've try to compile: ...
Hygroscope asked 14/6, 2012 at 7:49
1

© 2022 - 2024 — McMap. All rights reserved.