In Drracket Program;To do mathematical four operations,Finding the Space of the Circle and Circle and Square Drawing

in #utopian-io6 years ago (edited)

DQmdwkrPLLkC9pjbjHfNfXEo8Sje56wDLwHaAj4W7C5dF7p.png


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.

Requirement in the Latex program is sufficient, necessary and sufficient condition, and the use of the negative of the proposals. Also commands for using pi and ksi symbols

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ı

Latex Programında Üç Nokta Yazımı ve Çeşitlerinin, Büyük Operatör Simgelerinin, Nü ve Omega Sembollerinin Kullanım Komutları

  • In Drracket program; Addition
    (+ 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;

(+ 10 25)
(+ 5 40 150 20 )

1.png


*In Drracket program; Subtraction

(- 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;

(- 100 45)
(- 75 (+ 30 15))


2.png


  • 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))


    3.png


    • 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 ))




      4.png


      • 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)




        5.png


        • 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")





        6.png


        We can change the radius and the color. We can circle the diamonds and colors we want. For example;

        (circle 150 "solid" "blue")





        7.png


        • 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")





        8.png


        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")





        9.png


        Wishing to meet in other lessons...

        GitHub Link



        Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

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]

Coin Marketplace

STEEM 0.32
TRX 0.11
JST 0.034
BTC 66269.58
ETH 3204.67
USDT 1.00
SBD 4.24