Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
In mathematics and computer science, an algorithm is an effective method expressed as a finite list of well-defined instructions for calculating a function. Algorithms are used for calculation, data processing, and automated reasoning.
3
votes
How to draw a spiral using segments of varying circles?
My first choice would be to just use short line segments to approximate the spiral. A spiral in polar coordinates is just:
R = a + b * Theta
Rough pseudo-code for a spiral generation using line seg …
7
votes
Accepted
Drawing Ellipse from a bounding box?
A very basic and completely untested pseudo-code for drawing an ellipse using a parametric polar equation is below:
Function draw_ellipse(int X1, int Y1, int X2, int Y2)
RX = (X2 - X1) / 2
…