START TIMERTIME’S UP!
30
5
10
15
25
20
Artificiale inttelegence
Lab report
design by ilias ahmed 1
START TIMERTIME’S UP!
60
10
20
30
50
40
Submit by ilias ahmed
Id16339202142
39th batch
design by ilias ahmed 2
design by ilias ahmed 3
Lisp is the second-oldest high-level programming language after Fortran and has
changed a great deal since its early days, and a number of dialects have existed over
its history. Today, the most widely known general-purpose Lisp dialects are Common
Lisp and Scheme.
design by ilias ahmed 4
This Photo by Unknown Author is licensed under CC BY-SA
design by ilias ahmed 5
LAB REPORT
design by ilias ahmed 6
design by ilias ahmed 7
design by ilias ahmed 8
Operator Description Example
+ Adds two operands (+A B) will give 30
- Subtracts second operand from the
first
(- A B) will give -10
* Multiplies both operands (* A B) will give 200
/ Divides numerator by de-numerator (/ B A) will give 2
arithmetic operators supported by LISP. Assume variable A holds 10 and
variable B holds 20 then:
design by ilias ahmed 9
Assume variable A holds 10 and variable B holds 20, then:
Operator Description Example
= Checks if the values of the
operands are all equal or not, if
yes then condition becomes
true.
(= A B) is not true.
/= Checks if the values of the
operands are all different or not,
if values are not equal then
condition becomes true.
(/= A B) is true.
> Checks if the values of the
operands are monotonically
decreasing.
(> A B) is not true.
< Checks if the values of the
operands are monotonically
(< A B) is true.
design by ilias ahmed 10
Assume A has value nil and Bhas value 5, then:
Operator Description Example
and It takes any number of
arguments. The arguments are
evaluated left to right. If all
arguments evaluate to non-nil,
then the value of the last
argument is returned. Otherwise
nil is returned.
(and A B) will return NIL.
or It takes any number of
arguments. The arguments are
evaluated left to right until one
evaluates to non-nil, in such case
the argument value is returned,
otherwise it returns nil.
(or A B) will return 5.
not It takes one argument and
returns t if the argument
evaluates to nil.
(not A) will return T.
design by ilias ahmed 11
WRITE A AREA OF CIRCLE PROGRAMM IN LISP PROGRAMMING
(defconstant PI 3.141592)
(defun area-circle(rad)
(terpri) ;DESIGN BY ILIAS AHMED
(format t "Radius: ~5f" rad)
(format t "~%Area: ~10f" (* PI rad rad)))
(area-circle 10)
OUPUT:
Radius: 10.0Area: 314.1592
design by ilias ahmed 12
design by ilias ahmed 13
design by ilias ahmed 14
design by ilias ahmed 15
design by ilias ahmed 16
design by ilias ahmed 17
design by ilias ahmed 18
design by ilias ahmed 19
design by ilias ahmed 20
design by ilias ahmed 21
Design by ilias ahmed
design by ilias ahmed 22
design by ilias ahmed 23
Design by ilias ahmed
design by ilias ahmed 24
design by ilias ahmed 25
design by ilias ahmed 26
START TIMERTIME’S UP!
120
10
20
30
40
50
60
110
100
90
80
70
TIME LIMIT:
2 minutes
design by ilias ahmed 27
design by ilias ahmed 28
START TIMERTIME’S UP!
10
1
2
3
4
5
9
8
7
6
TIME LIMIT:
10 minutes
design by ilias ahmed 29
START TIMERTIME’S UP!
20
2
4
6
8
10
18
16
14
12
TIME LIMIT:
20 minutes
design by ilias ahmed 30
START TIMERTIME’S UP!
30
5
10
15
25
20
TIME LIMIT:
30 minutes
design by ilias ahmed 31

More Related Content

PPTX
Sequential circuit multiplier
PPTX
Sequential multiplication
PPTX
Boothmultiplication
PPTX
Passing stuctures to function
PPTX
Armstrong calculator
PDF
Write declarations for each of the following variables: a. amounts is a...
PPTX
Stack and queue -polish notations
PPTX
Pantheon Demo
Sequential circuit multiplier
Sequential multiplication
Boothmultiplication
Passing stuctures to function
Armstrong calculator
Write declarations for each of the following variables: a. amounts is a...
Stack and queue -polish notations
Pantheon Demo

What's hot (20)

PDF
Tricks
PPTX
Arithmetic and Logic instructions in Embedded C
PPTX
CFG to CNF
PDF
Efficiently Performing Arithmetic Operation over Fq18 Extension Field
PPTX
Arithmetic and logic operations in c
PPT
Concept of c
PPTX
Arithmetic expression INFIX TO POSTFIX CONVERTION saraswathi ramalingam
PPTX
Functions in c++,
PPTX
Data structure Stack
PDF
PPSX
PPT
An adaptive algorithm for detection of duplicate records
PPT
Introduction to lambda expression & lambda calculus
PDF
Lesson 5.2 logical operators
PPT
PPT
Stack Data Structure & It's Application
PPT
Pda to cfg h2
PPSX
CS106 Lab 11 - Functions (passing by reference)
PDF
Scilab-by-dr-gomez-june2014
DOCX
Cosc 2425 project 2 part 1 implement the following c++ code
Tricks
Arithmetic and Logic instructions in Embedded C
CFG to CNF
Efficiently Performing Arithmetic Operation over Fq18 Extension Field
Arithmetic and logic operations in c
Concept of c
Arithmetic expression INFIX TO POSTFIX CONVERTION saraswathi ramalingam
Functions in c++,
Data structure Stack
An adaptive algorithm for detection of duplicate records
Introduction to lambda expression & lambda calculus
Lesson 5.2 logical operators
Stack Data Structure & It's Application
Pda to cfg h2
CS106 Lab 11 - Functions (passing by reference)
Scilab-by-dr-gomez-june2014
Cosc 2425 project 2 part 1 implement the following c++ code
Ad

Similar to Labreportofai (20)

PPTX
PPTX
A brief introduction to lisp language
PPT
Programming.pptVBVBBMCGHFGFDFDHGDFKJKJKKJ;J
PPTX
AI Programming language (LISP)
PPTX
Report about the LISP Programming Language
PPT
ODP
Introduction to Programming in LISP
PPT
INTRODUCTION TO LISP
DOCX
Lisp and prolog in artificial intelligence
PDF
CLISP Lab Manual - Dr.J.VijiPriya
PPT
Advance LISP (Artificial Intelligence)
PDF
c_programming.pdf
PPTX
Programming II - Introductio bncvfh dgdgn.pptx
PPTX
AI UNIT-4 Final (2).pptx
PPTX
Expression and Operartor In C Programming
PPTX
introduction to c programming and C History.pptx
PPTX
Funtional Programming
PPTX
LISP: Introduction to lisp
PPTX
LISP: Introduction To Lisp
PPTX
Let's LISP like it's 1959
A brief introduction to lisp language
Programming.pptVBVBBMCGHFGFDFDHGDFKJKJKKJ;J
AI Programming language (LISP)
Report about the LISP Programming Language
Introduction to Programming in LISP
INTRODUCTION TO LISP
Lisp and prolog in artificial intelligence
CLISP Lab Manual - Dr.J.VijiPriya
Advance LISP (Artificial Intelligence)
c_programming.pdf
Programming II - Introductio bncvfh dgdgn.pptx
AI UNIT-4 Final (2).pptx
Expression and Operartor In C Programming
introduction to c programming and C History.pptx
Funtional Programming
LISP: Introduction to lisp
LISP: Introduction To Lisp
Let's LISP like it's 1959
Ad

More from ilias ahmed (20)

DOCX
We need parallel or series connections of n mos and pmos with a nmos source t...
PPTX
Android development-tutorial
PPSX
Signle assignmentforbciit
PPTX
Compiler design lab
DOCX
Ailabreport
PPT
artificial intelligence
PPSX
Compiler designs presentation final
PPSX
Compiler designs presentation by group 2 final final
PPT
Assmemble langauge for slideshare.net
DOCX
Phpfundamnetalfromtutplus
DOCX
Assignment complier design (GROUP1)
DOCX
Lisp programming
DOCX
Lispprograaming excercise
PPTX
Assembly lab up to 6 up (1)
PDF
Event design
PPT
PPT
Data communications
PPSX
Microprocessor projec ts
PPSX
Oop features java presentationshow
RTF
Sql functions
We need parallel or series connections of n mos and pmos with a nmos source t...
Android development-tutorial
Signle assignmentforbciit
Compiler design lab
Ailabreport
artificial intelligence
Compiler designs presentation final
Compiler designs presentation by group 2 final final
Assmemble langauge for slideshare.net
Phpfundamnetalfromtutplus
Assignment complier design (GROUP1)
Lisp programming
Lispprograaming excercise
Assembly lab up to 6 up (1)
Event design
Data communications
Microprocessor projec ts
Oop features java presentationshow
Sql functions

Recently uploaded (20)

PPTX
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PPTX
2025 High Blood Pressure Guideline Slide Set.pptx
PDF
Disorder of Endocrine system (1).pdfyyhyyyy
PPTX
Diploma pharmaceutics notes..helps diploma students
PDF
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
PDF
Laparoscopic Colorectal Surgery at WLH Hospital
PPTX
Reproductive system-Human anatomy and physiology
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI Syllabus.pdf
PDF
Hospital Case Study .architecture design
PDF
Civil Department's presentation Your score increases as you pick a category
PDF
Journal of Dental Science - UDMY (2021).pdf
PPT
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
PDF
Everyday Spelling and Grammar by Kathi Wyldeck
PDF
Solved Past paper of Pediatric Health Nursing PHN BS Nursing 5th Semester
PPTX
Climate Change and Its Global Impact.pptx
PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PPTX
PLASMA AND ITS CONSTITUENTS 123.pptx
PPTX
UNIT_2-__LIPIDS[1].pptx.................
PPTX
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
2025 High Blood Pressure Guideline Slide Set.pptx
Disorder of Endocrine system (1).pdfyyhyyyy
Diploma pharmaceutics notes..helps diploma students
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
Laparoscopic Colorectal Surgery at WLH Hospital
Reproductive system-Human anatomy and physiology
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI Syllabus.pdf
Hospital Case Study .architecture design
Civil Department's presentation Your score increases as you pick a category
Journal of Dental Science - UDMY (2021).pdf
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
Everyday Spelling and Grammar by Kathi Wyldeck
Solved Past paper of Pediatric Health Nursing PHN BS Nursing 5th Semester
Climate Change and Its Global Impact.pptx
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PLASMA AND ITS CONSTITUENTS 123.pptx
UNIT_2-__LIPIDS[1].pptx.................
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...

Labreportofai