VCSSL Code Archive
Welcome to the VCSSL Code Archive!
Here we are destributing various programs with commentary articles explaining algorithms, background knowladge, and so on.
Programs in this code archive are written in the VCSSL or the Vnano (subset of the VCSSL). The runtime envionment of the VCSSL&Vnano (available on various OSes, e.g.: Microsoft Windows®, Linux, etc.) is bundled in the destributed packages, so you can execute programs downloaded from here very easily.
The VCSSL/Vnano has a simple C-like syntax, so destributed programs in this code archive might be useful as a kind of example code of algorithms, when you implement it in C, C++, or other programming languages having C-like syntax. Each code of the program in this archive is basically (check each article for details) destributed under CC0, so you can customize / divert / redistribute them freely.
New Programs
The list of newly archived programs.
|
NumericalIntegrationUsingSimpson'sRule(QuadraticApproximation) |
|
|
|
Calculatesthevalueofadefiniteintegralusingamethodthatapproximatesthecurvewithparabolas,achievingevenhigheraccuracythanthetrapezoidalmethod. 2025-06-30 |
|
NumericalIntegrationUsingtheTrapezoidalMethod(TrapezoidalApproximation) |
|
|
|
Calculatesthevalueofadefiniteintegralbysummingupsmalltrapezoidsthatapproximatetheareaunderthecurve,offeringhigheraccuracythantherectangularmethod. 2025-06-29 |
|
NumericalIntegrationUsingtheRectangularMethod(RectangularApproximation) |
|
|
|
Calculatesthevalueofadefiniteintegralusingasimpleandintuitivemethodthatapproximatestheareaunderthecurvewithrectangularstrips. 2025-06-27 |
|
SimpleToolforViewingandConvertingBetweenRGBValuesandColorCodes |
|
|
|
DisplayandConvertRGBValuesandColorCodesonaGUITool 2025-05-15 |
Simulation
The list of scientific simulations.
|
WaveInterferenceAnimation(TwoCircularWavesonaPlane) |
|
|
|
Interactivesimulatorforvisualizingwaveinterferencebetweentwocircularwavesonaplane. |
|
CircularWaveAnimation |
|
|
|
Interactivesimulatorforanimatingcircularwavesonaplanewithadjustableparameters. |
|
WaveInterferenceAnimation(TwoSineWavesonaLine) |
|
|
|
Interactivesimulationofwaveinterferencebetweentwo1Dsinewaves. |
|
SineWaveAnimation |
|
|
|
Interactivesimulatorforanimatingsinewaveswithadjustableparameters. |
|
Vnano|SolveTheLorenzEquationsNumerically |
|
|
|
SolvetheLorenzequations,andoutputdatatoplotthesolutioncurve(well-knownasthe"LorenzAttractor")ona3Dgraph. |
Numerical Calculations and Algorithms
The list of numerical calculations, and example code of algorithms for them.
|
NumericalIntegrationUsingSimpson'sRule(QuadraticApproximation) |
|
|
|
Calculatesthevalueofadefiniteintegralusingamethodthatapproximatesthecurvewithparabolas,achievingevenhigheraccuracythanthetrapezoidalmethod. |
|
NumericalIntegrationUsingtheTrapezoidalMethod(TrapezoidalApproximation) |
|
|
|
Calculatesthevalueofadefiniteintegralbysummingupsmalltrapezoidsthatapproximatetheareaunderthecurve,offeringhigheraccuracythantherectangularmethod. |
|
NumericalIntegrationUsingtheRectangularMethod(RectangularApproximation) |
|
|
|
Calculatesthevalueofadefiniteintegralusingasimpleandintuitivemethodthatapproximatestheareaunderthecurvewithrectangularstrips. |
|
ToolForConvertingUnitsofAngles:DegreesandRadians |
|
|
|
AGUItoolforconvertingtheangleindegreesintoradians,orradiansintodegrees. |
|
FizzBuzzProgram |
|
|
|
AprogramprintingthecorrectresultofFizzBuzzgame. |
|
Vnano|OutputDataofNumericalIntegrationForPlottingGraph |
|
|
|
Examplecodecomputingintegratedvaluesnumerically,andoutputdataforplottingtheintegratedfunctionsintographs. |
|
Vnano|ComputeIntegralValueNumerically |
|
|
|
Examplecodecomputingintegralvaluesnumericallybyusingrectangularmethod,trapezoidalmethod,andSimpson'srule. |
Graph Plot
The list of programs plotting graphs, and programs outputting data for plotting graphs.
|
3DGraphPlottingToolforAnimatingDataLoadedfromMultipleFiles |
|
|
|
Asimpletoolwhichplots3Danimationgraphsbyloadingmultipledatafiles. |
|
2DGraphPlottingToolforAnimatingDataLoadedfromMultipleFiles |
|
|
|
Asimpletoolwhichplots2Danimationgraphsbyloadingmultipledatafiles. |
|
3DGraphToolforPlotting&AnimatingExpressionsoftheFormof"z=f(x,y,t)" |
|
|
|
Asimpletoolwhichplotstheexpression(formula)oftheformof"z=f(x,y,t)"tothe3Dgraph,andplaysitasanimation. |
|
2DGraphToolforPlotting&AnimatingExpressionsoftheFormof"y=f(x,t)" |
|
|
|
Asimpletoolwhichplotstheexpression(formula)oftheformof"y=f(x,t)"tothe2Dgraph,andplaysitasanimation. |
|
3DGraphToolforPlotting&AnimatingParametricExpressionsoftheFormofx(t),y(t),z(t) |
|
|
|
Asimpletoolwhichplotsparametricexpressions(formulas)oftheformofx(t),y(t),z(t)tothe3Dgraph,andplaysitasanimation. |
|
2DGraphToolforPlotting&AnimatingParametricExpressionsoftheFormofx(t)andy(t) |
|
|
|
Asimpletoolwhichplotsparametricexpressions(formulas)oftheformofx(t)andy(t)tothe2Dgraph,andplaysitasanimation. |
|
3DGraphToolforPlottingExpressionsoftheFormof"z=f(x,y)" |
|
|
|
Asimpletoolwhichplotstheexpression(formula)oftheformof"z=f(x,y)"tothe3Dgraph. |
|
2DGraphToolforPlottingExpressionsoftheFormof"y=f(x)" |
|
|
|
Asimpletoolwhichplotstheexpression(formula)oftheformof"y=f(x)"tothe2Dgraph. |
|
Animatinga3DGraphbyContinuouslyPlottingArrays(Surface/MeshPlot) |
|
|
|
Explainshowtocreate3Dsurface/meshgraphanimationsbyupdatingarraysovertime. |
|
Animatinga3DGraphbyContinuouslyPlottingArrays(Point/LinePlot) |
|
|
|
Explainshowtocreate3Dpoint/linegraphanimationsbyupdatingarraysovertime. |
|
Animatinga2DGraphbyContinuouslyPlottingArrays |
|
|
|
Explainshowtocreate2Dgraphanimationsbyupdatingarraysovertime. |
|
PlottingArraysona3DGraph(Surface/MeshPlot) |
|
|
|
Explainshowtoplotcoordinatedatastoredinanarrayona3Dsurface/meshgraphwithsamplecode. |
|
PlottingaFileona3DGraph(Surface/MeshPlot) |
|
|
|
Explainshowtoplotcoordinatedatafromafileona3Dsurface/meshgraphwithsamplecode. |
|
PlottingArraysona3DGraph(Point/LineGraph) |
|
|
|
Explainshowtoplotcoordinatedatastoredinanarrayona3Dgraphwithsamplecode. |
|
PlottingArraysona2DGraph |
|
|
|
Explainshowtoplotcoordinatedatastoredinanarrayona2Dgraphwithsamplecode. |
|
PlottingaFileona3DGraph(Point/LineGraph) |
|
|
|
Explainshowtoplotcoordinatedatafromafileona3Dgraphwithsamplecode. |
|
PlottingaFileona2DGraph |
|
|
|
Explainshowtoplotcoordinatedatafromafileona2Dgraphwithsamplecode. |
Graphics
The list of programs utilizing 2D/3D Graphics features.
|
SimpleToolforViewingandConvertingBetweenRGBValuesandColorCodes |
|
|
|
DisplayandConvertRGBValuesandColorCodesonaGUITool |
|
ASimpleToolforMakingSpecificColorsTransparent(BatchProcessingVersion) |
|
|
|
Batch-ConvertaSpecificColortoTransparencyinAllPNGFilesinaFolder |
|
ASimpleToolforMakingSpecificColorsTransparent |
|
|
|
ConvertaSpecificColortoTransparencyinPNGImageFiles |
|
SimpleToolforAnimatingSequentialImages |
|
|
|
AlightweighttooldevelopedwithVCSSLthatallowsyoutoplaybacksequentialimagefilesasananimationwithoutconvertingthemintoavideofile. |
|
VertexArray-BasedModelDeformationAnimation |
|
|
|
HowtoDeform3DSurfaceModelsUsingaGrid-BasedVertexArray |
|
CreatingaModelfromaVertexArray(QuadrangleGridMeshFormat) |
|
|
|
HowtoCreate3DSurfaceModelsfromaGrid-BasedVertexArray |
Vnano
The list of programs written in the Vnano. These programs are available on applications equipped with the script engine of the Vnano, e.g.: RINPn.
|
FizzBuzzProgram |
|
|
|
AprogramprintingthecorrectresultofFizzBuzzgame. |
|
Vnano|SolveTheLorenzEquationsNumerically |
|
|
|
SolvetheLorenzequations,andoutputdatatoplotthesolutioncurve(well-knownasthe"LorenzAttractor")ona3Dgraph. |
|
Vnano|OutputDataofNumericalIntegrationForPlottingGraph |
|
|
|
Examplecodecomputingintegratedvaluesnumerically,andoutputdataforplottingtheintegratedfunctionsintographs. |
|
Vnano|ComputeIntegralValueNumerically |
|
|
|
Examplecodecomputingintegralvaluesnumericallybyusingrectangularmethod,trapezoidalmethod,andSimpson'srule. |









