COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Environment model

• Email
• Follow

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am a beginner in Scheme. I'm given the following example:

==
((lambda (x) (* x x))
((lambda (a b) (a (* b b)))
(lambda (a) (* a a))
(* 2 2)))
==
and the computed value is 65536. Could someone explain me step by step
why the value is this one?

Thanks.
- --
- --

Failure is not falling down, you fail when you don't get back up.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAk838XEACgkQM0LLzLt8MhzoFwCglHm+XJFob2rWXIvLlOx70tz9
nn0AnArY+xWvFtb5xK0FnKeJ7KlLE27T
=aK1Z
-----END PGP SIGNATURE-----

 0

See related articles to this posting

Merciadri Luca wrote:
> ((lambda (x) (* x x))
>  ((lambda (a b) (a (* b b)))
>   (lambda (a) (* a a))
>   (* 2 2)))

> and the computed value  is 65536. Could someone explain me
> step by step why the value is this one?

It is not difficult.  This (* 2 2) evaluates to 4, and after
that what is it that you do not understand?

Which   Scheme  implementation  are   you  using?    If  I
understand  correctly, Racket  has a  step-by-step evaluator

--
Marco Maggi

 0
Reply marco9664 (30) 2/12/2012 7:46:08 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've now understood. Thanks.

- --
- --

It is better to die on one's feet than live on one's knees.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAk84NzoACgkQM0LLzLt8Mhzk/ACbBfMDj2CX+VW5/9aeRnOUudzp
3DMAnRl1XjWCGIqhWuL3JseMvdOQ6aWe
=C4np
-----END PGP SIGNATURE-----

 0

2 Replies
90 Views

Similar Articles

12/11/2013 9:47:34 AM
[PageSpeed]

Similar Artilces:

Simulation Environment for component model software #2
I'm an italian student from Neaples,i search a simulation environment for component model software, help me for accademic purpose, thanks! ...

ARMA model codes using PROC MODEL
I have a dataset which is not exactly as standard time series. So the PROC ARIMA cannot be appried directly. I need to write a customerized ARMA under proc model framework, specifically, AR(1)+MA(1). If anyone has some sample codes, it would be a great helpful. TIA. ...

Re: Model fit for ordinal multinomial models in GENMOD? #2
Robin R High <rhigh@UNMC.EDU> wrote >Tobias, > >It is somewhat of a multi-step process, namely first determine if the >cumulative logit model assumption is OK with LOGISTIC: > >PROC LOGISTIC DATA=indat; >CLASS xvar / PARAM=glm; >FREQ count; >MODEL y = xvar / link=clogit ; >run; > >Near the top you'll see: > > >The LOGISTIC Procedure > >Score Test for the Proportional Odds Assumption > >Chi-Square DF Pr > ChiSq > > 3.9106 3 0.2713 > > >which the relatively "large" pvalue in...

Xilinx FPGA
Calling all FPGA experts! I'm currently using Xilinx ISE 7.1i with the ModelSim XE III/Starter 6.0a simulator. The FPGA which I am downloading my design onto is a Spartan IIE (it's on the Spartan IIE LC Development Kit, with an XC2S300E device). After synthesizing, implementing and programming the design onto the FPGA, I tested the outputs of the FPGA on the development kit using a digital oscilloscope. However, I was not getting the signals I wanted. After simulating the design on ModelSim, and comparing the simulated outputs with the actual FPGA outputs, I realised that the behavio...

Poor Bad Rate in Modeling Data Set
Hi, I am making a response model where I intend to predict the probability that a customer will responded to a campaign. But unfortunately I have just 900 observations of customers who have not responded to a campaign while I have around 4K observations of customers who have responded to a campaign. Can anyone suggest me how to make a modeling data set, I mean what ratio of respondent and non-respondent shall I keep so that my modeling dataset gives me a good & accurate prediction. Thanks & Regards, Rajat Nick, Thanks for your reply. Yeah I am sure actually this is all the data ava...

Helo with TRS-80 Model I RS-232 Cable / 3.5" Disk Drives in a Model IV/4D
Kilo-Niner <kilo-niner@peoplepc.com> wrote: > My Model I EI (latest revision) has the RS-232 board installed, > however did not come with the RS-232C ribbon cable. Could someone > please provide me with the proper pinouts for the 40 pin edge card/ > DB-25 connector so that I can fabricate one? TRS EI RS-232 16 Pgnd 1 (power ground) 18 TD 2 22 RD 3 36 RTS 4 32 CTS 5 40 DSR 6 20 Sgnd 7 (signal ground) 30 CD 8 34 DTR 20 38 RI 22 If you have the manual and intend...

Data Modelling
Hi there ! Is there a comprehensive data modelling tool that can convert logical data model into physical data model (database) of your choice (Oracle / SQL Server / DB2 etc). If yes than can this tool be relied upon for re-engineering the physical database. If yes then what happens to the data that and how is the data managed during the reengineering process. On Feb 5, 11:40=A0pm, Yashik Vimal <yashikvi...@gmail.com> wrote: > Hi there ! Is there a comprehensive data modelling tool that can > convert logical data model into physical data model (database) of your > choice (Oracl...

environment inheritance
when executing a 'system( some_other program );' from within a perl script the environment it inherits, specifically the path, is unexpected. i login to the work station and an environment is defined and used for subsequent shells. and so it seems it is used for the 'system' command. i would prefer that it use the environment of the shell from which the perl script is called. as they are different (i intentionally changed it) and changing the other, the login environment, requires that i log out and login once more. is there a way to make the system call use the curre...

NLIN model
Hi group I have a question about logistic regression approach. I have used the MIXED procedure to analyze different parameters of Crop Growth Analysis. But, my prof. has recommend me to fit a non linear function instead of using empirical relations of those parameters. I came across couple of options and one of them is logistic regression for this kind of problem. Since, we have yet not covered this topic in the class but have to use for research. Therefore, I thought to put my query here. I am writing down below the model. When I ran it. It ran but gave couple of errors. ...

OSI-Model
Hi! I have a question about osi-model, that I dont understand: With how mnay other layers does a layer in the osi model generally communicate???? The correct answer is three. (My opinion is two) Can anybody say me why??? Ray A layer communicates with itself as well as its neighbors. "Raimond Alpers" <raimond.alpers@gmx.de> wrote in message news:brq7j3$l7q$06\$1@news.t-online.com... > Hi! > I have a question about osi-model, that I dont understand: > With how mnay other layers does a layer in the osi model generally > communicate???? > > The correct a...

I need a solidworks model of a stereo headset, can't seem to find one! Does anyone know where to find it? Do you have one? ...

Symetry modeling...
I've got a maya model that they can use symmetry modeling on, with no problem. Maya uses a different symmetry system for it's modeling then lightwave's absolute X axis based system. Is there any way to give modeler a little leeway when modeling in symmetry mode? it would be nice if it could just look for points within a certain limit, and drag them as if perfectly symmetrical. The manual has one whole paragraph on using symmetry. Anyway, is there a plugin, lscript or something similar that would achieve this? -- Gareee� Homepage: http://www.fortunecity.com/tattooine/ellison/8...

Modeling question...
I'm working on an existing model, and need to snap some points together, but *not* weld them together. Anyone have a good quickie tip? I'm zoomed in literally as far in as lightwave will go, and there are still some points a tad off. I can do it manually by hand, but there are about 100-200 points I need to deal with, so any quick tip would help. I'd prefer to *not* move one of the points, but "snap" another selected point to the first one. -- Gareee� Homepage: http://www.fortunecity.com/tattooine/ellison/86/mainframe.htm Custom Figures, Wallpapers and more! On Wed...

What Model PIX is this ?
I recently picked up a PIX but I'm not sure what model it is. It doesn't seem to be a 5XX series. On the back where it would be usually show the model number it just says Pix Firewall / Local Director. It is 4U high with a floppy drive in the front. The back is poplulated with 3 Ethernet connections with 3-4 slots available for more. Here is a sh ver from it. Anyone know what this thing is called ? PIX Version 4.4(8) Compiled on Fri 22-Jun-01 20:09 by pixbuild PIX Bios V2.7 pixfirewall up 1 min 16 secs Hardware: VS440FX, 16 MB RAM, CPU Pentium Pro 199 MHz Flash atmel @ base 0x30...

PSpice Models
I am looking for PSpice Models for Opto 6N137 and of transistor 2SD1963. If someone has these models please mail them to me at ajaydsouza[at]gmail.com Thanks, Ajay ...

proof environment
The proof of a theorem, when I use \begin{proof} etc, is written with another font. How can I use the same font that is used in the theorem (or in the rest of the document)? Anolethron <Humbleguy876@hotmail.com> wrote: > The proof of a theorem, when I use \begin{proof} etc, is written with > another font. How can I use the same font that is used in the theorem > (or in the rest of the document)? What do you mean? The text style inside the theorem environment should differ from the usual one. On the other hand, the text style inside the proof environment should be the usual...

Excavator model
Does anyone know where I could find a 3d model of an excavator (digger) ? I'm going to use it in SolidWorks and it would be best, if it represents some real-life model. It does not have to be really accurate, but the dimensions should be realistic. ...

Car Modelling
I am looking to do some fun modelling on the side and I was wondering if anyone has seen a tutorial on modelling a car in solidworks. I saw a lady working on a VW Bug at Go Engineer about a year ago but it didn't peek my interest at the time. Any help would be great. maybe this http://www.plsgoogleit.com "Chopster" <tazznchop@comcast.net> wrote in message news:1110336116.755653.263450@g14g2000cwa.googlegroups.com... >I am looking to do some fun modelling on the side and I was wondering > if anyone has seen a tutorial on modelling a car in solidworks. I saw a >...

Snowmobile Model
Hi, Does anyone have or know where to find a solidworks model of a snowmobile? I just need it for demonstration purposes only but without it I can demonstrate the solidworks model I have made. So, I'd really appreciate it if anyone could point me in the right direction. Thanks in advance, Aria ....without it I CANT demonstrate the model i have made... Aria, It was a Corporate demo from a few years ago, if your VAR cannot provide the assembly then I think I may have it archived somewhere. post back if you have no luck and I will see what I have. "Aria" <akashefi@inte...

Which IPOD model?
Would appreciate any opinions on the trade-offs of buying either 60 GB IPOD Photo, new 40 GB HP IPOD, or used 3rd generation 40 GB IPOD. I have 30 GB of music files BEFORE digitizing some old records and tapes, so want at least 40 GB. Do want to be able to connect to some gadget to make it convenient to play and keep charged in the car. ...