Coder Social home page Coder Social logo

htdp's Introduction

htdp 연습문제 풀이

racket을 사용할때 필요한 라이브러리

#lang racket
(require htdp/draw) ;; 그림 그릴때 사용하는 라이브러리 
(require lang/posn) ;; 구조체 라이브러리
(draw-solid-line start end color) ;; 라인그리기 `

merge-sort

  • 26.1.2 참조

struct

  • 정의방법

    (define-struct name value)

  • 예제

    (define-struts rr (table cost)) (define-struts rr (table cost) #transparent)

  • 주의점

  • equal? 을 사용할때 #transparent 옵션이 안 들어가 있는 경우엔 같은

  • 값으로 비교가 되질 않는다.

수학관련 함수

  • remainder : 나머지
  • degrees->radians : 도를 라디안으로
  • sin, cos, tan : 라디안을 기본적으로 입력 받음
  • pi : 파이
  • 그래픽 관 련
  • (start width height) : canvas을 만들어줌

htdp's People

Contributors

jaejin avatar

Watchers

 avatar  avatar

htdp's Issues

27.1.4 미해결

사바나 나무는 못 만들겠음.

현재까지는 좌표의 변환까지는 알겠음.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.