unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Simon Huskier <huskier@gmail.com>
To: Noah Lavine <noah.b.lavine@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: ERROR: Wrong number of arguments to #<procedure ......
Date: Thu, 12 Jul 2012 09:51:50 +0800	[thread overview]
Message-ID: <CAF=cZjSTuUHGr9wbER4j6qv7gCXxhheOdmWrYBZ4FK9G0jZnLw@mail.gmail.com> (raw)
In-Reply-To: <CA+U71=Nhmd3G7YSW+UZFW7m2atJmcfJ4xE+3BHcxC_XQXSpeLg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

Thanks Noah. Thank you all of you!

Jay Sulzberger suggest the following change, and it makes sense to me.
*
*

> ;;;; function definition
>
>> (define (eps-func p)
>>    (let* ((p (lattice->cartesian))
>>
>
Perhaps above should be

* (let* ((p (lattice->cartesian p)) *

Regards,

Simon

On Thu, Jul 12, 2012 at 9:48 AM, Noah Lavine <noah.b.lavine@gmail.com>wrote:

> The error you are writing about is right here:
>
> >> ;;;; function definition
> >> (define (eps-func p)
> >>    (let* ((p (lattice->cartesian)) <------
> >>              (x (vector3-x p))
> >>              (y (vector3-y p))
> >>              (z (vector3-z p)))
> >> (if (> sin(* 2 pi x y z) 0)
> >>                 (make dielectric
> >>                         (epsilon 12))
> >>                 (make dielectric
> >>                         (epsilon 1)))))
>
> You call the function lattice->cartesian there with no arguments, but
> it expects one argument.
>
> Noah
>
> > Regards,
> >
> > Simon
>

[-- Attachment #2: Type: text/html, Size: 3096 bytes --]

      reply	other threads:[~2012-07-12  1:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12  0:30 ERROR: Wrong number of arguments to #<procedure Simon Huskier
2012-07-12  1:48 ` Noah Lavine
2012-07-12  1:51   ` Simon Huskier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF=cZjSTuUHGr9wbER4j6qv7gCXxhheOdmWrYBZ4FK9G0jZnLw@mail.gmail.com' \
    --to=huskier@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=noah.b.lavine@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).