ERROR: Arithmetic: a/0 is not a function" number
- From: <talthen.z-serwera.o2@xxxxxxxxx>
- Date: Mon, 23 Jan 2006 20:18:45 +0100
Hello,
I have just written:
l(T1,T2):- number(T1),T2 is 2*T1.
l(T1,T2):- not(number(T1)),T2 is T1.
It have to double the numbers, and pass the rest. However when I run it:
l(a,X).
I got:
ERROR: Arithmetic: a/0 is not a function" number
Which is a very crazy thing. When i write:
number(a).
I just got:
Yes.
What's wrong?
Regards,
Talthen
.
- Follow-Ups:
- Re: ERROR: Arithmetic: a/0 is not a function" number
- From: Bart Demoen
- Re: ERROR: Arithmetic: a/0 is not a function" number
- Prev by Date: [ANN] STEP Part 21 processing with Prolog
- Next by Date: Re: ERROR: Arithmetic: a/0 is not a function" number
- Previous by thread: [ANN] STEP Part 21 processing with Prolog
- Next by thread: Re: ERROR: Arithmetic: a/0 is not a function" number
- Index(es):