Skip to main content
Commonmark migration
Source Link

#MATLAB, 85 81

MATLAB, 85 81

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(i.^(4*(k:m:n^2)/n))
end

Result for n=30, m=12: f(30,12)

#MATLAB, 85 81

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(i.^(4*(k:m:n^2)/n))
end

Result for n=30, m=12: f(30,12)

MATLAB, 85 81

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(i.^(4*(k:m:n^2)/n))
end

Result for n=30, m=12: f(30,12)

added 6 characters in body
Source Link
feersum
  • 31.8k
  • 11
  • 66
  • 125

#MATLAB, 8585 81

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(expi.^(4*(k:m:n^2)*2i*pi/n))
end

Result for n=30, m=12: f(30,12)

#MATLAB, 85

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(exp((k:m:n^2)*2i*pi/n))
end

Result for n=30, m=12: f(30,12)

#MATLAB, 85 81

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(i.^(4*(k:m:n^2)/n))
end

Result for n=30, m=12: f(30,12)

added 92 characters in body
Source Link
feersum
  • 31.8k
  • 11
  • 66
  • 125

#MATLAB, 85

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(exp((k:m:n^2)*2i*pi/n))
end

Result for n=30, m=12: f(30,12)

#MATLAB, 85

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(exp((k:m:n^2)*2i*pi/n))
end

#MATLAB, 85

The function displays a plot on the screen.

function f(n,m)
hold all
axis equal
for k=1:gcd(m,n)
plot(exp((k:m:n^2)*2i*pi/n))
end

Result for n=30, m=12: f(30,12)

added 4 characters in body
Source Link
feersum
  • 31.8k
  • 11
  • 66
  • 125
Loading
Source Link
feersum
  • 31.8k
  • 11
  • 66
  • 125
Loading