Re: Another conversion to C or Java...
- From: "André Thieme" <address.good.until.2006.jan.3@xxxxxxxxxxx>
- Date: 30 Nov 2005 01:01:06 -0800
You don't need to copy Lisp-style in C (or Java).
If you program in C as one should do it you could maybe do something
like:
double temp1[15], prod = 1, temp = 1;
for (i=0; i<15; i++) {
prod *= probs[i];
temp *= 1-probs[i];
}
return prod/(temp+prod);
.
- References:
- Another conversion to C or Java...
- From: Marco Minerva
- Re: Another conversion to C or Java...
- From: Pascal Bourguignon
- Re: Another conversion to C or Java...
- From: Marco Minerva
- Another conversion to C or Java...
- Prev by Date: Re: Reddit Guys on the Pros and Cons of Lisp
- Next by Date: Re: Hints on recursion
- Previous by thread: Re: Another conversion to C or Java...
- Next by thread: Re: Another conversion to C or Java...
- Index(es):