spiral Questions

3

Solved

First, just to give a visual idea of what I'm after, here's the closest result (yet not exactly what I'm after) image that I've found: Here's the entire site-reference: http://www.mathematische-...
Generate asked 3/12, 2010 at 19:58

35

Solved

A friend was in need of an algorithm that would let him loop through the elements of an NxM matrix (N and M are odd). I came up with a solution, but I wanted to see if my fellow SO'ers could come u...
Paraclete asked 29/12, 2008 at 18:40

3

Solved

This is for an iPad application, but it is essentially a math question. I need to draw a circular arc of varying (monotonically increasing) line width. At the beginning of the curve, it would have...
Kirbee asked 7/7, 2012 at 20:4

2

I am preparing for an interview and have been stuck on this question for quite some time now. Could anybody please help me with the code. If not complete then may be a snippet of it? Please..
Banksia asked 31/10, 2009 at 21:29

7

I'm trying to fill an array in spiral order. So far, I can print the array in spiral order, but is there a way to modify the array so that i can fill it in spiral order and then just print the arra...
Gubernatorial asked 3/6, 2009 at 14:58

2

Solved

The map format OpenDrive, provides (among others) the geometry of a road. Each segment of the road can have a different geometry (e.g. line, arc, spiral, polynomial). The provided information for a...
Harrold asked 20/2, 2018 at 11:48

2

I want to plot various spirals like the ones shown in the Figure (one spiral inner the others). Let's say I have three spirals (S1, S2 and S3) and I want to fill the area between consecutive spiral...
Gomphosis asked 9/9, 2020 at 11:34

4

Solved

I need an algorithm to calculate the distribution of points on a spiral path. The input parameters of this algorithm should be: Width of the loop (distance from the innermost loop) Fixed distanc...
Natter asked 15/12, 2012 at 17:58

1

Solved

I'd like to create a bar plot on an Archimedean spiral, like discussed here. With an end goal of something like this, but less overwhelming. Here's a sample dataframe: test <- structure(list...
Algoid asked 12/1, 2017 at 0:44

2

How do you draw a swirl in R ? I am trying to plot a list of numbers 1:100 and every 7th number assign it a factor '1' all others just '0' . I also have a vector of TRUE or FALSE . How do I plot a ...
Waisted asked 30/12, 2016 at 5:47

6

Solved

What is an algorithm to get the nth element of a rectangular tiled spiral? Here is n: [ 20 ][ 21 ][ 22 ][ 23 ][ 24 ] [ 19 ][ 6 ][ 7 ][ 8 ][ 9 ] [ 18 ][ 5 ][ 0 ][ 1 ][ 10 ] [ 17 ][ 4 ][ 3 ][ 2 ][ ...
Zelda asked 10/4, 2012 at 18:57

1

Solved

I currently have a MATLAB program which takes RGB images of traced spiral arms from galaxies and selects the biggest arm component and plots only that. I have tried using matlab's built in curv...
Danille asked 1/3, 2016 at 14:39

1

Solved

import java.io.*; import java.awt.*; // Logarithmic spiral example public class Spiral extends Frame {// The spiral consists of n line segments. Line segment 1 // has starting point (hc, vc). Line...
Quenna asked 12/11, 2015 at 22:38

1

I am trying to draw a spiral raster example (link) on a server (running Node.js). However, I am facing an issue where my path is not displayed on the exported frame and I can only see the downloade...
Prosecute asked 9/1, 2015 at 17:13

2

Solved

I have a list of coordinate to be sorted with a spiral algorithm. My need is to start on the middle of the area and "touch" any coordinate. To simplify this is the representation of the (unsorted)...
Counterpoise asked 4/2, 2015 at 13:48

4

Solved

I'm looking to loop through a matrix similar to Looping in a spiral but looping outside-in, instead of inside-out. Can anyone help me with a good way to do this for a matrix of any size, ideally in...
Tattered asked 3/3, 2015 at 16:46

4

Solved

i wanted ask if there some algorithm ready, that allowed me to do this: i have a matrix m (col) x n (row) with m x n elements. I want give position to this element starting from center and rotating...
Trucker asked 6/1, 2012 at 12:2

2

Solved

I wanted to build a spiral square matrix using recursion. I am able to build spiral square matrix using iterative method as below: void main() { int initial_direction = UP , n = MAX , p = 1 ; ...
Irradiant asked 22/5, 2014 at 6:55

4

I want to make a function that I give it a number and the function returns a spiral from 1 to that number(in 2 dimensional array). For example if I give the number 25 to the function it will ...
Ripieno asked 17/5, 2014 at 1:20

7

Given an n by n matrix M, at row i and column j, I'd like to iterate over all the neighboring values in a circular spiral. The point of doing this is to test some function, f, which depends on M,...
Zina asked 23/1, 2012 at 21:59

10

What's more appropriate than a Spiral for Easter Code Golf sessions? Well, I guess almost anything. The Challenge The shortest code by character count to display a nice ASCII Spiral made of...
Alexia asked 1/4, 2010 at 20:45
1

© 2022 - 2025 — McMap. All rights reserved.