Alright, umm i cant get this to work.
im looking at some example and a book i have.
when i try to compile my program i get an error message.
ld: 0711-317 ERROR: Undefined symbol: .sqrt
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. I did #include<math.h> after my... (2 Replies)
Hi, I got an easy problem for you but really difficult for me 'cause I am pretty new to this field
I got header file <math.h> included in my .c file , then I write the code as below:
k = sqrt(i); /* both variables k and i are int */
then I cc temp.c
it says like this
undefined... (4 Replies)
I have 2 variables
a=2
b=1
i want to add a and b
how do i do this in unix using just the echo command and by assigning it to a different variable like c? (13 Replies)
I am trying to do some math, so that I can compare the average of six numbers to a variable.
Here is what it looks like (note that when I divide really big numbers, it isn't a real number):
$ tail -n 6 named.stats | awk -F\, '{print$1}'
1141804
1140566
1139429
1134210
1084682
895045... (3 Replies)
I have
int miles, yards;
float kilometers;
float kilometers2;
miles = 26;
yards = 385;
kilometers = 1.609 * (miles + yards / 1760.0);
where int/float remains a float. How ever if I change it to
kilometers = 1.609 * (miles + yards / 1760);
... (7 Replies)
I am struggling with scripting this challenge a friend and I have.
You have file1 and its contents is a single number
you have file 2 and its contents are a different number
you want to add file1 to file2 and have the output be put into file3 (3 Replies)
i have file (my_file.txt) that looks like this:
000000000000010000
000000000000010000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
all said and one, it should look... (11 Replies)
Discussion started by: lawsongeek
11 Replies
LEARN ABOUT SUNOS
j1
j0(3M) Mathematical Library Functions j0(3M)NAME
j0, j0f, j0l, j1, j1f, j1l, jn, jnf, jnl - Bessel functions of the first kind
SYNOPSIS
cc [ flag... ] file... -lm [ library... ]
#include <math.h>
double j0(double x);
float j0f(float x);
long double j0l(long double x);
double j1(double x);
float j1f(float x);
long double j1l(long double x);
double jn(int n, double x);
float jnf(int n, float x);
long double jnl(int n, long double x);
DESCRIPTION
These functions compute Bessel functions of x of the first kind of orders 0, 1 and n respectively.
RETURN VALUES
Upon successful completion, these functions return the relevant Bessel value of x of the first kind.
If x is NaN, a NaN is returned.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |See below. |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
The j0(), j1(), and jn() functions are Standard. The j0f(), j0l(), j1f(), j1l(), jnf(), and jnl() functions are Stable.
SEE ALSO isnan(3M), y0(3M), math.h(3HEAD), attributes(5), standards(5)SunOS 5.10 1 Sep 2002 j0(3M)