Find Jobs
Hire Freelancers

need python expert to work with

₹100-400 INR / hour

종료됨
게시됨 약 9년 전

₹100-400 INR / hour

Your task for this project is to write a Spyrograph (a python simulation of a Spirograph). The program should allow the user to enter the parameters for a Spirograph drawing, and then produce the corresponding picture in a window. The picture created by the Spirograph (a hypotrochoid) depends on three parameters: <\ul> • R the radius of the fixed circle. • r the radius of the rolling circle • d the distance of the pen from the center of the rolling circleThe points of the hypotrochoid are the described by the parametric equations: x(t) = (R-r) cost + dcos (t(R-r)/r) y(t) = (R-r) sint - dsin (t(R-r)/r) Here, t can be thought of as the time parameter, and (assuming you are using radians) every 2π the rolling circle will go around the fixed circle once. Assuming R and r are positive integers, the number of times the rolling circle goes around the fixed circle before it starts to repeat itself is r/gcd(R, r) (that is the radius of the rolling circle divided by the greatest common divisor of the rolling circle and the fixed circle). A good overview of the maths can be found at [login to view URL] CORRECTION: The y(t) equation has been corrected above on 8 April. If you use the old equation, you will not lose marks. To check if you are drawing the hypotrochoid correctly using the correct y(t) equation, try the values given on this link and see if you get similar plots. ________________________________________ Tasks You are required to write the following Python functions. Make sure you understand where each function fits into the system described above. 1. docstring # (20%) The docstring is the comment at the start of the Python file. Your docstring should include: o Your name and student number o A short description of a Spirograph o A description of how you calculated the hypotrochoid o Instructions on how to interact with your project o References to any resources used 2. getInputs(): # (10%) This function should prompt the user for the values of the drawing parameters, and return these values to the calling program. 3. getNumberOfPoints(R, r, prec): # R, r, prec>0 (10%) This function should determine the number of points (x,y coordinates) to calculate, assuming that every
프로젝트 ID: 7543112

프로젝트 정보

2 제안서
원격근무 프로젝트
활동 중 9년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
2 이 프로젝트에 프리랜서들의 평균 입찰은 ₹361 INR입니다./시간
사용자 아바타
Hi, I'm an python/perl developer with quite some time spend on both, I'm willing to pick up your project since I'm completely fresh-man around freelancer.com. In what environment the python code is supposed to work? Best Regards Jakub
₹388 INR 4일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (INDIA)
Calcutta, India
4.6
121
결제 수단 확인
1월 29, 2011부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.