File:Shapes in the Vedic Square.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 600 × 600 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,200 × 1,200 pixels.
Original file (1,200 × 1,200 pixels, file size: 8 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]DescriptionShapes in the Vedic Square.png |
English: Distinct shapes formed by highlighting respective numbers in a Vedic Square.
Created using the following Maple code, run on Maple 13: # Load Packages #
with(LinearAlgebra):with(plots):
# Set up procedure for Digital Root #
DigRot := proc(n) description "base 10 digital root"; if irem(n,9) = 0 then return 9 else return irem(n,9); end if; end proc;
# Generate Vedic Square #
VS := Matrix(9): for i from 1 to 9 do for j from 1 to 9 do VS(i,j) := DigRot(i*j); end do: end do: VS;
# Create Matrix for highlighted plot
HighVS := proc(M::Matrix,n::integer) local i,j,tempM; tempM := Matrix(9): for i from 1 to 9 do for j from 1 to 9 do if M(i,j)=n then tempM(i,j):=0 else tempM(i,j) := 1 end if; end do: end do: tempM; end proc;
# Highlighted Plots #
for k from 1 to 9 do: k; matrixplot(HighVS(VS,k),heights=histogram,orientation=[0,0],axes=none,labels=["","",""],gap=0.2,shading=zgrayscale); end do;
|
Date | |
Source | Own work |
Author | Paul Carpenter |
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following licenses:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:16, 25 September 2009 | 1,200 × 1,200 (8 KB) | Paul Carpenter (talk | contribs) | {{Information |Description={{en|1=Distinct shapes formed by highlighting respective numbers in a Vedic Square. Created using the following Maple code, run on Maple 13: <source lang="pascal"># Load Packages # |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikipedia.org
- Usage on en.wikipedia.org
- Usage on ro.wikipedia.org
- Usage on si.wikipedia.org
- Usage on sl.wikipedia.org
- Usage on zh.wikipedia.org