help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regarding multiply-armed equiangular (or Logarithmic) spirals


From: James Sherman Jr.
Subject: Re: Regarding multiply-armed equiangular (or Logarithmic) spirals
Date: Thu, 13 Sep 2012 11:52:39 -0400

On Wed, Sep 12, 2012 at 4:43 AM, Rajib & Susmita Bandopadhyay <address@hidden> wrote:
Dear friends,
Could you please inform me how could I generate multiply-armed equiangular (or Logarithmic) spirals in Octave(Debian) ?
Since I use Debian Squeeze, I used openofficemath software to generate the formula printed below. The form should be as follows (with summation convention, this is a series):
 
with the open office Math format as r_n = a.e^(b*%theta).e^(2 *%pi/n), with graph for every r, i,e, r1, r2, r3,..., rn, plotted separately.
Eagerly awaiting your response.
Regards,
bkpsusmitaa




_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


I think you want a script that looks something like this:
--------------
a = 1; % or whatever you want a to be
b = 1; % or whatever you want b to be
theta = 0:.01:2*pi; % These are the values of theta to be used, starting at 0, and going up by increments of .01 and stopping at 2*pi
N = 10;  % or whatever your maximum number of curves you want

figure;
hold on;

for n = 1:N,
   polar(theta, a*exp(b*theta).*exp(2*pi/n));
endfor
--------------

Save this in a file called, say curves.m, and after you open octave, use the "cd" command to go to the directory you saved the file in.  Then type "curves" to plot.  I think this should do what you want.

I hope this helps.

James Sherman


reply via email to

[Prev in Thread] Current Thread [Next in Thread]