According to a Wikipedia article on the subject, in Herbert B. Enderton's book Computability: An Introduction to Recursion Theory (2011), even if nowhere else (no other reference is given, and I've never seen the usage):
Answer from Calum Gilhooley on Stack ExchangeIf
is a partial function on
and
is an element of
, then this is written as
and is read as "
is defined."
If
is not in the domain of
, then this is written as
and is read as "
is undefined".
According to a Wikipedia article on the subject, in Herbert B. Enderton's book Computability: An Introduction to Recursion Theory (2011), even if nowhere else (no other reference is given, and I've never seen the usage):
Answer from Calum Gilhooley on Stack ExchangeIf
is a partial function on
and
is an element of
, then this is written as
and is read as "
is defined."
If
is not in the domain of
, then this is written as
and is read as "
is undefined".
According to a Wikipedia article on the subject, in Herbert B. Enderton's book Computability: An Introduction to Recursion Theory (2011), even if nowhere else (no other reference is given, and I've never seen the usage):
If
is a partial function on
and
is an element of
, then this is written as
and is read as "
is defined."
If
is not in the domain of
, then this is written as
and is read as "
is undefined".
I have never seen such a symbol. I don't think it would be very useful, and it might make unexperienced people less aware that they are dealing with an undefined entity, and start doing calculations with it getting meaningless results.
Videos
The math library must be linked in when building the executable. How to do this varies by environment, but in Linux/Unix, just add -lm to the command:
gcc test.c -o test -lm
The math library is named libm.so, and the -l command option assumes a lib prefix and .a or .so suffix.
You need to link the with the -lm linker option.
You need to compile as:
gcc test.c -o test -lm
gcc (Not g++) historically would not by default include the mathematical functions while linking. It has also been separated from libc onto a separate library libm. To link with these functions you have to advise the linker to include the library -l linker option followed by the library name m thus -lm.
Observe that the order of arguments matter, it does not work if -lm is placed immediately after gcc.