Re: [Haskell-cafe] Homework help - calculator function

2011-06-22 Thread Vo Minh Thu
2011/6/22 Gregory Collins : > On Wed, Jun 22, 2011 at 4:39 PM, SM Design wrote: >>  I have a homework which is very important to be done but I can't complete >> the task at all. The program i should write is: > > Nobody on this list is going to do your homework for you

Re: [Haskell-cafe] Homework help - calculator function

2011-06-22 Thread Johan Tibell
On Wed, Jun 22, 2011 at 10:39 PM, SM Design wrote: >  I have a homework which is very important to be done but I can't complete > the task at all. The program i should write is: http://www.haskell.org/haskellwiki/Homework_help ___ Haskell-C

Re: [Haskell-cafe] Homework help - calculator function

2011-06-22 Thread Gregory Collins
On Wed, Jun 22, 2011 at 4:39 PM, SM Design wrote: >  I have a homework which is very important to be done but I can't complete > the task at all. The program i should write is: Nobody on this list is going to do your homework for you, or at least I hope not. Before you expect to ge

[Haskell-cafe] Homework help - calculator function

2011-06-22 Thread SM Design
I have a homework which is very important to be done but I can't complete the task at all. The program i should write is: Make calculator- function in Haskell. The function argument is a list of strings and also form such list, as each string of the argument made def

Re: [Haskell-cafe] multMM :: Matrix -> Matrix -> Matrix --multiplies two matrices question (Homework)

2010-02-05 Thread Keith Sheppard
I did a blog post on basic matrix ops which may be useful to you http://blog.keithsheppard.name/2009/06/bird-tracks-through-math-land-basic.html It uses a 2D list representation for matrices which you would not do for any performance critical work. best keith On Wed, Feb 3, 2010 at 1:38 AM, 조광래

Re: [Haskell-cafe] multMM :: Matrix -> Matrix -> Matrix --multiplies two matrices question (Homework)

2010-02-03 Thread Hans Aberg
On 3 Feb 2010, at 07:38, 조광래 wrote: hi i was trying to solve it but All i got is type Matrix=[[Double]] multMM :: Matrix -> Matrix -> Matrix --multiplies two matrices multMM m t =[[sum (zipWith (*) (head m)(a)) ] ]where a = [head a | a<- t] Main> multMM [[2,1,-6],[1,-3,2]] [[1,0,-3

[Haskell-cafe] multMM :: Matrix -> Matrix -> Matrix --multiplies two matrices question (Homework)

2010-02-02 Thread 조광래
hi i was trying to solve it but All i got is type Matrix=[[Double]] multMM :: Matrix -> Matrix -> Matrix --multiplies two matrices multMM m t =[[sum (zipWith (*) (head m)(a)) ] ]where a = [head a | a<- t] Main> multMM [[2,1,-6],[1,-3,2]] [[1,0,-3],[0,4,20],[-2,1,1]] [[14.0]] from this i

Re: [Haskell-cafe] Doing people's homework?

2009-09-29 Thread Daniel Fischer
; possibly has multiple solutions, like building an engine for a car, I > would do better if I hadn't seen a (well crafted) working engine by > someone else than if I had? I thought we were talking about homework for a school/university course. I tacitly assumed that the principles and s

Re: [Haskell-cafe] Doing people's homework?

2009-09-29 Thread Michael Mossey
Iain Barnett wrote: So, if I was trying to come up with a solution to a problem that possibly has multiple solutions, like building an engine for a car, I would do better if I hadn't seen a (well crafted) working engine by someone else than if I had? If effort is there, then give me the e

Re: [Haskell-cafe] Doing people's homework?

2009-09-29 Thread Curt Sampson
On 2009-09-29 13:47 +0100 (Tue), Iain Barnett wrote: > So, if I was trying to come up with a solution to a problem that > possibly has multiple solutions, like building an engine for a car, I > would do better if I hadn't seen a (well crafted) working engine by > someone else than if I had?

[Haskell-cafe] Re: Doing people's homework?

2009-09-29 Thread Maurí­cio CA
If you do a student's homework, you are cheating that student out of an education. Personally, I tend to find "exercises" without access to the answers a poor way to learn. You'll learn more from a well crafted example than you ever will by struggling at something yourse

Re: [Haskell-cafe] Doing people's homework?

2009-09-29 Thread Iain Barnett
On 29 Sep 2009, at 12:48, Daniel Fischer wrote: Am Dienstag 29 September 2009 13:04:38 schrieb Iain Barnett: Personally, I tend to find "exercises" without access to the answers a poor way to learn. You'll learn more from a well crafted example than you ever will by struggling at something you

Re: [Haskell-cafe] Doing people's homework?

2009-09-29 Thread Daniel Fischer
Am Dienstag 29 September 2009 13:04:38 schrieb Iain Barnett: > Personally, I tend to find "exercises" without access to the answers   > a poor way to learn. You'll learn more from a well crafted example   > than you ever will by struggling at something yourself. I sort of disagree. You'll learn mo

Re: [Haskell-cafe] Doing people's homework?

2009-09-29 Thread Iain Barnett
On 29 Sep 2009, at 03:19, Casey Hawthorne wrote: If you do a student's homework, you are cheating that student out of an education. He/She may realize that t late in the future. -- Regards, Casey I'm not sure I agree with that. If they're old enough to be doing Haskel

Re: [Haskell-cafe] Doing people's homework?

2009-09-28 Thread Casey Hawthorne
If you do a student's homework, you are cheating that student out of an education. He/She may realize that t late in the future. -- Regards, Casey ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/ha

[Haskell-cafe] Re: Doing people's homework?

2009-09-28 Thread Maurí­cio CA
> I'm not really hip to the culture here so this is just an > observation, but some of the recent questions posted to this > list (and beginn...@haskell.org) look a lot like someone's > homework. Well, if homework "looks like" homework, the teacher is gui

Re: [Haskell-cafe] Doing people's homework?

2009-09-28 Thread Daniel Fischer
Am Dienstag 29 September 2009 01:40:02 schrieb Michael P Mossey: > I'm not really hip to the culture here so this is just an observation, but > some of the recent questions posted to this list (and > beginn...@haskell.org) look a lot like someone's homework. Is anyone her

Re: [Haskell-cafe] Doing people's homework?

2009-09-28 Thread Thomas DuBuisson
> I think the consensus is "Help, not do" when it comes to homework (esp. on > -beginners). At least, thats what I try to do. I've always got the sense > that that is what the community expects. Yep, there's a whole policy on this. http://www.haskell.org/has

Re: [Haskell-cafe] Doing people's homework?

2009-09-28 Thread Joe Fredette
I think the consensus is "Help, not do" when it comes to homework (esp. on -beginners). At least, thats what I try to do. I've always got the sense that that is what the community expects. On Sep 28, 2009, at 7:40 PM, Michael P Mossey wrote: I'm not really hip to the

[Haskell-cafe] Doing people's homework?

2009-09-28 Thread Michael P Mossey
I'm not really hip to the culture here so this is just an observation, but some of the recent questions posted to this list (and beginn...@haskell.org) look a lot like someone's homework. Is anyone here concerned about avoiding giving the full answer, or maybe it's really none

Re: [Haskell-cafe] Homework wiki page (was Re: How can I represent 4x4 map in haskell)

2008-03-31 Thread Neil Mitchell
ree. That page is pretty nasty. It looks like the person summarised Eric Raymond's article, which is also pretty nasty. A rewrite would be very good! > Let me be clear: I am not arguing that we should do people's homework for > them. But I am arguing for changing the tone of t

[Haskell-cafe] Homework wiki page (was Re: How can I represent 4x4 map in haskell)

2008-03-31 Thread Chris Smith
re only here for our personal daily fix of mental challenge, and if they can't meet that then they've got no business wasting our time. Let me be clear: I am not arguing that we should do people's homework for them. But I am arguing for changing the tone of the response. I'

Re: [Haskell-cafe] The Garbage Collector Ate My Homework

2007-07-10 Thread Thomas Conway
Hmm, looks like the garbage collector got hungry again: 1093,741,664,672 bytes allocated in the heap 1006,759,632,160 bytes copied during GC (scavenged) 72,181,353,728 bytes copied during GC (not scavenged) 400,940,412 bytes maximum residency (8853 sample(s)) 76353 collections in generation

Re: [Haskell-cafe] The Garbage Collector Ate My Homework

2007-07-04 Thread Tim Chevalier
On 7/3/07, Thomas Conway <[EMAIL PROTECTED]> wrote: Okay, so a bit of a tweak of the RTS flags, I got a DRAMATIC improvement: 239,434,077,460 bytes allocated in the heap 9,034,063,712 bytes copied during GC (scavenged) 132,748,740 bytes copied during GC (not scavenged) 226,313,736 bytes maximum

Re: [Haskell-cafe] The Garbage Collector Ate My Homework

2007-07-03 Thread Tim Chevalier
[I assume this was meant to go to the list as well, so I'm adding it back to the CCs] On 7/3/07, Thomas Conway <[EMAIL PROTECTED]> wrote: It occurs to me that tweaking the GC parameters can probably make a big difference: is starting with a bigger heap likely to help, or more generations? My gen

Re: [Haskell-cafe] The Garbage Collector Ate My Homework

2007-07-03 Thread Stefan O'Rear
On Wed, Jul 04, 2007 at 03:56:20PM +1000, Thomas Conway wrote: > Well, not quite, but look at the following: > > 118,342,689,824 bytes allocated in the heap > 144,831,738,780 bytes copied during GC (scavenged) > 335,086,064 bytes copied during GC (not scavenged) > 255,257,516 bytes maximum residen

Re: [Haskell-cafe] The Garbage Collector Ate My Homework

2007-07-03 Thread Tim Chevalier
On 7/3/07, Thomas Conway <[EMAIL PROTECTED]> wrote: Well, not quite, but look at the following: 118,342,689,824 bytes allocated in the heap 144,831,738,780 bytes copied during GC (scavenged) 335,086,064 bytes copied during GC (not scavenged) 255,257,516 bytes maximum residency (42 sample(s))

[Haskell-cafe] The Garbage Collector Ate My Homework

2007-07-03 Thread Thomas Conway
Well, not quite, but look at the following: 118,342,689,824 bytes allocated in the heap 144,831,738,780 bytes copied during GC (scavenged) 335,086,064 bytes copied during GC (not scavenged) 255,257,516 bytes maximum residency (42 sample(s)) 222884 collections in generation 0 (3891.90s)

Re: homework help: upn parser

2003-12-15 Thread Graham Klyne
At 13:12 14/12/03 +0100, Max Hoffmann wrote: Dear Haskell cafe members, I am somebody one could well call a bloody beginner but the elegance of functional programming and am therefore truly interested to learn more about Haskell. Now I have an assignment to write a parsing function to convert a s

Re: homework help: upn parser

2003-12-15 Thread Leon Smith
What I mean is, what kinds of clauses do you need for when you are done with recursion, and what should your first call to this function look like? Of course, you need to try out your code and carefully think about what it's doing. When asking for homework help on haskell-cafe, Haskell

homework help: upn parser

2003-12-14 Thread Max Hoffmann
Dear Haskell cafe members, I am somebody one could well call a bloody beginner but the elegance of functional programming and am therefore truly interested to learn more about Haskell. Now I have an assignment to write a parsing function to convert a string of a mathematical expression into a tr

Re: Help on Homework help

2003-09-03 Thread Andrew J Bromage
G'day all. On Wed, Sep 03, 2003 at 08:34:58AM +0100, Simon Peyton-Jones wrote: > One suggestion: it'd be good to suggest *strongly* that people only > send their homework-style questions to Haskell-café, not to the main > Haskell list. Done, thanks. Che

RE: Help on Homework help

2003-09-03 Thread Simon Peyton-Jones
Good write-up. One suggestion: it'd be good to suggest *strongly* that people only send their homework-style questions to Haskell-café, not to the main Haskell list. Given the existence of the fomer, using the latter is likely to irritate, which isn't likely to elicit helpful res

Help on Homework help

2003-09-02 Thread Andrew J Bromage
G'day all. In response to the recent poll, and because I promised to, here is a first attempt at a page to direct people to, should they ask for homework help in the wrong way: http://haskell.org/hawiki/HomeworkHelp Comments, criticisms and contributions are most welcome. C

Poll result: How to respond to homework questions

2003-09-02 Thread Tom Pledger
hat I do when a student fronts up to my office wanting help with homework I've set. I'd have no problem with (informed) third parties doing the same." (If you sent me descriptive text, didn't keep a copy yourself, and were expecting me to

Re: Poll: How to respond to homework questions

2003-08-29 Thread Dominic Fox
- make it clear that the answers are out there, but you have to look for them and puzzle them through yourself. Dominic - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 3:09 AM Subject: Re: Poll: How to respond to homework qu

Re: Poll: How to respond to homework questions

2003-08-29 Thread Ketil Z. Malde
"Shawn P. Garbett" <[EMAIL PROTECTED]> writes: > For the "How do I write a map function in Haskell?", how about an answer of > "drop course immediately before your GPA is impacted further." :-) > Of course, this comes from someone whos made some stupid posts to this list, > and gotten polite a

Re: Poll: How to respond to homework questions

2003-08-29 Thread mgross
> (A) Give a perfect answer. > (B) Give a subtly flawed answer. > (C) Give an obfuscated answer. > (D) Give a critique of what the questioner has tried so far. > (E) Give relevant general advice without answering the specific question. > As a general rule, I require any student who comes to me

Re: Poll: How to respond to homework questions

2003-08-28 Thread John Meacham
On Thu, Aug 28, 2003 at 09:42:56AM +1200, Tom Pledger wrote: > I'm curious about what the people on this list consider appropriate, > as responses to homework questions. Even if there isn't a consensus, > it may be interesting to see how opinion is divided. > > Plea

Re: Poll: How to respond to homework questions

2003-08-28 Thread Tom Pledger
Matthew Donadio writes: | Tom Pledger wrote: : | > (D) Give a critique of what the questioner has tried so far. : | There is a big difference between "I am having some trouble with this | homework problem. This is what I did. Could someone give me some | tips? Thanks"

Re: Poll: How to respond to homework questions

2003-08-28 Thread Shawn P. Garbett
On Thursday 28 August 2003 04:25 am, Ketil Z. Malde wrote: > > On Wed, Aug 27, 2003 at 05:50:14PM -0400, Matthew Donadio wrote: > >> There is a big difference between "I am having some trouble with this > >> homework problem. This is what I did. Could someone gi

AW: Poll: How to respond to homework questions

2003-08-28 Thread Markus . Schnell
OK: D E Not OK: A B C I have never seen anybody asking more than one "do my homework" question. I would encourage students to give it a try, even if it's not working, and give some advice on that. Pointing to a web page like "do your homework yourself - it will benefit you

Re: Poll: How to respond to homework questions

2003-08-28 Thread Hampus Ram
On Thu, Aug 28 2003, Tom Pledger wrote: > (A) Give a perfect answer. > (B) Give a subtly flawed answer. I would never ever do either A or B no matter how the question was phrased. A does not really help and B is just plain mean. > (C) Give an obfuscated answer. C is not a very good way to go eit

Re: Poll: How to respond to homework questions

2003-08-28 Thread Andrew J Bromage
G'day all. On Thu, Aug 28, 2003 at 11:25:43AM +0200, Ketil Z. Malde wrote: > I suppose C is one way to do F, in particular by providing a working > program so complex and opaque that no first-year could possibly have > written it. Uhm... yes. > I'm not sure I care much for politesse. Understoo

Re: Poll: How to respond to homework questions

2003-08-28 Thread Ketil Z. Malde
critique of what the questioner has tried so far. >>> (E) Give relevant general advice without answering the specific question. (F) Give a blatantly incorrect answer, providing entertainment value to those of us who did our own homework, and hopefully a clue to the more

Re: Poll: How to respond to homework questions

2003-08-28 Thread Andrew J Bromage
wiki) which we can include in the list subscription information and can also send to people who ask for the kind of homework help that we don't like to see. IMO, this is better than ignoring, and far more polite than giving a correct but highly useless answer, fun though that might be. I

Re: Poll: How to respond to homework questions

2003-08-27 Thread Matthew Donadio
Tom Pledger wrote: > I'm curious about what the people on this list consider appropriate, > as responses to homework questions. Even if there isn't a consensus, > it may be interesting to see how opinion is divided. > > Please consider the following. > > (A) Give

Poll: How to respond to homework questions

2003-08-27 Thread Tom Pledger
Hi. I'm curious about what the people on this list consider appropriate, as responses to homework questions. Even if there isn't a consensus, it may be interesting to see how opinion is divided. Please consider the following. (A) Give a perfect answer. (B) Give a subtly flawed answer

Re: Homework

2003-08-26 Thread oleg
> Here's one: figure out what the following does :-) > puzzle = (!!) $ map (1:) $ iterate (s (lzw (+)) (1:)) [] where > s f g x = f x (g x) > lzw op xs [] = xs > lzw op [] ys = ys > lzw op (x:xs) (y:ys) = op x y : lzw op xs ys Can be written simpler puzzle = (!!) $ iterate (s (

Re: Homework

2003-08-22 Thread Joe English
thomas_bevan wrote: > > Seeing as its thst time of year again and everyone is posting their > homework, has anyone got any good puzzles to do? > I wouldn't mind having a go at something a bit tricky. Here's one: figure out what the following does :-) puzzle = (!!) $ map

Re: Homework

2003-08-22 Thread Frank Seaton Taylor
it be? Just give it some thought.") This was cruel timing. ;-) ---Frank On Friday, Aug 22, 2003, at 02:25 US/Eastern, Andrew J Bromage wrote: G'day all. On Fri, Aug 22, 2003 at 03:41:14PM +1000, [EMAIL PROTECTED] wrote: Seeing as its thst time of year again and everyone is posting

Re: Homework

2003-08-22 Thread Thomas L. Bevan
of year again and everyone is posting their > > homework, has anyone got any good puzzles to do? > > I wouldn't mind having a go at something a bit tricky. > > OK, here's a tricky problem. > > Take a list S. Delete some elements from the list. What you have > l

Re: Homework

2003-08-21 Thread Andrew J Bromage
G'day all. On Fri, Aug 22, 2003 at 03:41:14PM +1000, [EMAIL PROTECTED] wrote: > Seeing as its thst time of year again and everyone is posting their > homework, has anyone got any good puzzles to do? > I wouldn't mind having a go at something a bit tricky. OK, here's a

Homework

2003-08-21 Thread thomas_bevan
Seeing as its thst time of year again and everyone is posting their homework, has anyone got any good puzzles to do? I wouldn't mind having a go at something a bit tricky. Tom ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskel