Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 5240 - 5269 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
5240
C:\Objective Caml\Bin>ocamlopt.opt -S -o grtest.exe graphics.cmx grtest.ml LINK: fatal error LNK1181: cannot open input file 'C:\Objective ...
aaron_ogden_2000
aaron_ogden_...
Offline Send Email
Jan 5, 2006
9:58 am
5241
Dear everyone Happy new year Can somebody tell me how I can represent positive infinity float number in Ocaml? Is there such symbol in Ocaml library? Best...
Zhifeng Sheng
z.sheng@...
Send Email
Jan 6, 2006
2:31 pm
5242
Dear everyone Happy new year Can somebody tell me how I can represent infinity float number? Is there such notation in the Ocaml library? Best regards Zhifeng...
Zhifeng Sheng
z.sheng@...
Send Email
Jan 6, 2006
2:42 pm
5243
... $ ocaml Objective Caml version 3.08.4 # infinity;; - : float = infinity -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists ...
Jon Harrop
harropjon
Offline Send Email
Jan 6, 2006
2:47 pm
5244
... And it's neg_infinity for negative infinity. It's all in the manual, in the floating-point arithmetic part of the section on the Pervasives module...
William Neumann
scoey13
Offline Send Email
Jan 6, 2006
3:55 pm
5245
... Yes: # infinity;; - : float = infinity # neg_infinity;; - : float = neg_infinity -- Martin Jambon, PhD http://martin.jambon.free.fr Visit...
Martin Jambon
BioMim
Offline Send Email
Jan 6, 2006
8:39 pm
5246
Hi, This function was supposed to be an implementation of simpson's rule for integration, but the Ocaml interpreter won't accept it; can anyone find anything...
Jerry He
rebound1618
Offline Send Email
Jan 7, 2006
12:50 am
5247
Well... I got: "Unbound value gosimp" So, you better define the functions you want to use.. the first problem seems to be: you call a function inside itself: ...
Oliver Bandel
oliver@...
Send Email
Jan 7, 2006
1:19 am
5248
... All of which are correct- there are several places where it looks like he's using + and - (integer addition and subtraction) when he needs to be using +....
Brian Hurt
bhurt42
Offline Send Email
Jan 7, 2006
3:42 am
5249
I'd also point out the mod operator, for integer modulo, as an answer to his second question. Brian Can you give example as to how to use the mod operator? I...
Jerry He
rebound1618
Offline Send Email
Jan 7, 2006
4:08 am
5250
mod is a special, infix function. same with lsl, asr, lsr, lor, land, and lxor (think that's them all). so: 5 mod 2...
Jonathan Roewen
consulatewizard
Offline Send Email
Jan 7, 2006
4:14 am
5251
... No. ... These ARE type errors. An "int" is not a "float", it's a different type. ... Second question? Didn't remembre there was one. ;-( Ciao, Oliver...
Oliver Bandel
oliver@...
Send Email
Jan 7, 2006
1:58 pm
5252
Hey, Thanks for answering my last question, I finally got the 1-D simpson's method working, but when I extended it to 2-D with the following code, I got a...
Jerry He
rebound1618
Offline Send Email
Jan 7, 2006
3:33 pm
5253
... What's the code for go2simp? Or more importantly, what is its type signature? Let's see: You declare let rec go2simp sum x i n f, but also have match (i...
William Neumann
scoey13
Offline Send Email
Jan 7, 2006
4:13 pm
5254
... Isn't the hint given by the compiler quite accurate? It says you pass a float value to some parameter which is supposed to be a int. - According to...
code17
code_1977
Offline Send Email
Jan 7, 2006
6:47 pm
5255
Wish it helps. code17 It helps alot, thanks! -Jerry ... Yahoo! Photos – Showcase holiday pictures in hardcover Photo Books. You design it and we’ll bind...
Jerry He
rebound1618
Offline Send Email
Jan 7, 2006
9:14 pm
5256
Hello, list Not sure whether the following problem belongs to OCaml or general UNIX issues: Suppose I have two file_descr already exist, in_fd for reading,...
code17
code_1977
Offline Send Email
Jan 7, 2006
11:30 pm
5257
I'm addressing this from the Unix side of things. ... Well, BSD has sendfile, which copies data from a regular file to a socket. That has some possibilities,...
Mike Meyer
mbzsl320
Offline Send Email
Jan 8, 2006
12:02 am
5258
Hi all, I just installed Ocaml 3.09.0 Mingw and I have Cygwin, but when I tried to do ocamlopt filename.ml, it gave me thie error message: ...
Jerry He
rebound1618
Offline Send Email
Jan 8, 2006
3:43 am
5259
... It's an operator, so: $ ocaml Objective Caml version 3.08.2 # 5 mod 3;; - : int = 2 # Brian...
Brian Hurt
bhurt42
Offline Send Email
Jan 8, 2006
6:13 am
5260
... Thanks for the hint. ... If I understand correctly, you are actually suggesting I open the two worlds with specific file_descr instead of their stdin...
code17
code_1977
Offline Send Email
Jan 8, 2006
11:57 am
5261
Hi, I'm trying to figure out how I can declare two classes where each needs to know the others type. This is a rough illustration, but I want to do something...
Bob Jones
micah4junk
Offline Send Email
Jan 8, 2006
1:23 pm
5262
... The only thing I know of that will do what you want is the sendfile call - and it may not work. I don't know how portable it is, so you'll have to check...
Mike Meyer
mbzsl320
Offline Send Email
Jan 8, 2006
7:54 pm
5263
... Hi, you need to cast self in the initializer (and more generally whenever you use it as an argument to a function/method outside the class) because self's...
Christophe Dehlinger
christophede...
Offline Send Email
Jan 9, 2006
10:12 am
5264
Hello all, my problem can be summed up in one line : #10.87+.0.01;; - : float = 10.879999999999999 Of course I can redefine my own float type and operations, ...
roparzhhemon
Offline Send Email
Jan 9, 2006
2:05 pm
5265
... #include <stdio.h> void main (){ float a , b; a = 10.87; b = 0.01; printf ("%.10f\n", a + b); } ... The output of this program is : 10.8799998853 Rounding...
Matthieu Dubuget
dubuget
Offline Send Email
Jan 9, 2006
2:15 pm
5266
http://docs.sun.com/source/806-3568/ncg_goldberg.html Perhaps you want fixed point?...
Chris Campbell
chrisdanx
Offline Send Email
Jan 9, 2006
3:31 pm
5267
... The standard floats, used by almost all computer languages & implementations including OCaml and C, use a binary representation such that neither 10.87 nor...
Frederic van der Plan...
fplancke2001
Offline Send Email
Jan 9, 2006
3:42 pm
5268
... This is basically a Unix programming question. I suggest you pick up a copy of Advanced Programming in the Unix Environment ...
Richard Jones
rwmjones
Offline Send Email
Jan 9, 2006
4:33 pm
5269
... Short answer: No. Long answer: here's the problem. Floating point is of finite precision. For any base, *any* base, there are simple fractions which can...
Brian Hurt
bhurt42
Offline Send Email
Jan 9, 2006
5:24 pm
Messages 5240 - 5269 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help