In Drracket Program;To do mathematical four operations,Finding the Space of the Circle and Circle and Square Drawing
What Will I Learn?
Using the Drracket program;
A.To do the four operations in mathematics
B. Finding the area of the circle
C. Making circle and square drawing
Topics we will learn using commands.
Requirements
A. Drracket program
B. Racket programming language
Difficulty
The level of commands we use in our class is simple
Tutorial Contents
In Drracket program;Using the Racket programming language,mathematical four operations,finding the circle area and finally, we will learn to draw circles and squares. We will do these using the racket programming language.
Curriculum
It will be the first lesson I make with the Drracket program. List of my other courses.
The use of small and large symbols and types and the large x symbol in the Latex program.
Geogebra Programında Çokgen,Doğru,Doğru Parçası ve Kesiştir Komutlarının Düzlemde Kullanımı
- In Drracket program; Addition
is defined as.(+ a b )
(+ symbol is the first number of spaces "a", the space is the second number "b")
The program will calculate a + b. Examples;
(+ 10 25)
(+ 5 40 150 20 )
*In Drracket program; Subtraction
(- a b)
(- 100 45)
(- 75 (+ 30 15))
- In Drracket program; Multiplication
(* a b)
is defined as.(* symbol is the first number of spaces "a", the space is the second number "b") The program will calculate a *b. Examples;(* 15 13)
(* (+ 12 7) (- 17 5))
- In Drracket program; Division
(/ a b)
is defined as.(/ symbol is the first number of spaces "a", the space is the second number "b") The program will calculate a /b. Examples;(/ 250 25)
(/ (* 45 30) (+ 9 6 ))
- In Drracket program; Calculate the circle area. The command we will use is '' define ''.
(define ''variable name'' ''variable value'') used in the form. Let's define the number of pi as 3.14.(define Pi 3.14)
Circle area formula: ''Pi.r^2''. For example; Let's calculate the area of an apartment with a radius of 15.(define Pi 3.14)
(define (cirlearea radius)
(* Pi radius radius))
(cirlearea 15)
- In Drracket program; The command used to draw circles is '' circle ''.I draw circles in full green and 50 cm radius. For example;
(circle 50 "solid" "green")
We can change the radius and the color. We can circle the diamonds and colors we want. For example;
(circle 150 "solid" "blue")
- In Drracket program; The command used to make a square drawing is '' square ''. I draw a square with a full red color and a 100 cm edge. For example;
(square 100 "solid" "red")
We can change the color and edge length of our square as we want. I draw a square with an edge length of 120 cm and a color. For example;
(square 120 "solid" "yellow")
Wishing to meet in other lessons...
Posted on Utopian.io - Rewarding Open Source Contributors
- In Drracket program; Calculate the circle area. The command we will use is '' define ''.
- In Drracket program; Division
Hey @matematikciemre, your contribution was rejected by the supervisor @jestemkioskiem because he found out that it did not follow the Utopian rules.
Upvote this comment to help Utopian grow its power and help other Open Source contributions like this one. Do you want to chat? Join me on Discord.
Your contribution cannot be approved because it does not follow the Utopian Rules.
After further review, we believe the contents of this tutorial are too trivial to meet Utopian standards.
You can contact us on Discord.
[utopian-moderator]
Hey @jestemkioskiem, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
This post has received a 1.04 % upvote from @drotto thanks to: @banjo.
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
thank you @kizilelma