Skip to content

Commit

Permalink
Add program files
Browse files Browse the repository at this point in the history
  • Loading branch information
link9313 committed Oct 20, 2016
1 parent 19dbc3f commit f275f65
Show file tree
Hide file tree
Showing 58 changed files with 2,608 additions and 2 deletions.
Binary file added AP_Calc_setup.exe
Binary file not shown.
20 changes: 20 additions & 0 deletions Calculus Graph.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C++ Express 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Calculus Graph", "Calculus Graph\Calculus Graph.vcxproj", "{7BEDCF2B-2EE6-44C1-A42D-092467147E56}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7BEDCF2B-2EE6-44C1-A42D-092467147E56}.Debug|Win32.ActiveCfg = Debug|Win32
{7BEDCF2B-2EE6-44C1-A42D-092467147E56}.Debug|Win32.Build.0 = Debug|Win32
{7BEDCF2B-2EE6-44C1-A42D-092467147E56}.Release|Win32.ActiveCfg = Release|Win32
{7BEDCF2B-2EE6-44C1-A42D-092467147E56}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added Calculus Graph/AP Calc.ico
Binary file not shown.
31 changes: 31 additions & 0 deletions Calculus Graph/AP Calc.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#define IDR_VERSION1 1
#define CalcIcon 100

IDR_VERSION1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEOS 0x00000004
FILETYPE 0x00000001
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "04090000"
BEGIN
VALUE "FileVersion", "1.0.0.0\0"
VALUE "ProductVersion", "1.0.0.0\0"
VALUE "FileDescription", "Calculus Graph\0"
VALUE "InternalName", "AP Calc\0"
VALUE "LegalCopyright", "� Nick Lauber, under the GPL 2.0 license\0"
VALUE "OriginalFilename", "AP Calc.exe\0"
VALUE "ProductName", "Calculus Graph\0"
VALUE "CompanyName", "Nick Lauber\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 0x0000
END
END

CalcIcon ICON DISCARDABLE "AP Calc.ico"

93 changes: 93 additions & 0 deletions Calculus Graph/Calculus Graph.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{7BEDCF2B-2EE6-44C1-A42D-092467147E56}</ProjectGuid>
<RootNamespace>APCalc</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ExecutablePath>C:\Documents and Settings\Owner\My Documents\Projects\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgslcblas\debug-dll;C:\Documents and Settings\Owner\My Documents\Projects\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgsl\debug-dll;$(ExecutablePath)</ExecutablePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<IncludePath>C:\Documents and Settings\Owner\My Documents\Projects\gsl-1.8-src\src\gsl\1.8\gsl-1.8\gsl;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LibraryPath>C:\Documents and Settings\Owner\My Documents\Projects\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgslcblas\debug-dll;C:\Documents and Settings\Owner\My Documents\Projects\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgsl\debug-dll;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>gsl_dll;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\Documents and Settings\Owner\My Documents\Projects\gsl-1.8-src\src\gsl\1.8\gsl-1.8</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>libgsl_dll_d.lib;libgslcblas_dll_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
<Version>
</Version>
<SuppressStartupBanner>true</SuppressStartupBanner>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="func.cpp" />
<ClCompile Include="integ.cpp" />
<ClCompile Include="main.cpp" />
<ClCompile Include="text.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="func.h" />
<ClInclude Include="integ.h" />
<ClInclude Include="text.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="AP Calc.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
47 changes: 47 additions & 0 deletions Calculus Graph/Calculus Graph.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="text.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="integ.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="func.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="text.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="integ.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="func.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="AP Calc.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
49 changes: 49 additions & 0 deletions Calculus Graph/Old/AP Calc.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/' +---------------------------------------------------+
| Calculus Graph |
| Written by Nick Lauber |
| Code licensced under the GNU GPL License |
+---------------------------------------------------+
| Main Program Code |
+---------------------------------------------------+'/

' Open eq.lst for reading the equations from within.
'Open "eq.lst" for binary Access Read as #1

' Include Header File
#Include Once "AP Calc.bi"

'Initialize Variables
Dim fvar As gsl_function
Dim wptr As gsl_integration_workspace Ptr
Dim result As Double
Dim result_error As Double
Dim A As Double

A = 1.0

' Create Integration workspace
wptr = gsl_integration_workspace_alloc(1000)

' Assign data to GSL function
fvar.function = @f
fvar.params = @A

' Integrate function (function, lower limit, upper limit, absolute error, relative error, size of workspace,
' integration workspace, result, error of result)
gsl_integration_qags(@fvar,0,2,0,1.0E-8,1000,wptr,@result,@result_error)

Print "The integral of the function x^2 on interval [0,2] is " ; result
Print "the error of the integral is + or - " ; result_error
Sleep

gsl_integration_workspace_free(wptr)

Function f Cdecl Alias "f" (ByVal x As Double, ByRef params As Any Ptr) As Double
Dim a As Double
Dim fret As Double

a = *(Cast(Double Ptr, params))
fret = a*x*x

Return fret
End Function
18 changes: 18 additions & 0 deletions Calculus Graph/Old/AP Calc.bi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/' +---------------------------------------------------+
| Calculus Graph |
| Written by Nick Lauber |
| Code licensced under the GNU GPL License |
+---------------------------------------------------+
| Main Header File |
+---------------------------------------------------+'/

' Define Version
#Define __AP_CALC_Version__ "0.0.0.1"
#Define __BUILD_Date__ "4-17-2012"

'Initializing GSL functions
'main site http://www.gnu.org/software/gsl/
#Include "gsl\gsl_deriv.bi"
#include "gsl\gsl_integration.bi"

Declare Function f Cdecl (ByVal x As Double, ByRef params As Any Ptr) As Double
Binary file added Calculus Graph/Old/AP Calc.exe
Binary file not shown.
41 changes: 41 additions & 0 deletions Calculus Graph/Old/AP Calc.fbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[Project]
Version=3
Description=Calculus Graph
Api=fb (FreeBASIC)
Grouping=1
AddMainFiles=1
AddModuleFiles=1
ResExport=
CompileIfNewer=0
IncVersion=0
RunCmd=0
[Make]
Module=Module Build,fbc -c
Recompile=2
Current=2
1=Windows Console,fbc -s console
2=Windows Console (debug),fbc -g -s console
3=Windows GUI,fbc -s gui
4=Windows GUI (debug),fbc -g -s gui
Output=
Run=
Delete=
[TabOrder]
TabOrder=1,3,2,4,5
[File]
1=AP Calc.bas
2=AP Calc.rc
3=AP Calc.bi
4=Readme.txt
5=eq.lst
[BreakPoint]
1=
3=
4=
5=
[FileInfo]
1=0,30,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
2=0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
3=0,17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
4=0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
5=0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Binary file added Calculus Graph/Old/AP Calc.ico
Binary file not shown.
31 changes: 31 additions & 0 deletions Calculus Graph/Old/AP Calc.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#define IDR_VERSION1 1
#define CalcIcon 100

IDR_VERSION1 VERSIONINFO
FILEVERSION 0,0,0,1
PRODUCTVERSION 0,0,0,1
FILEOS 0x00000004
FILETYPE 0x00000001
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "04090000"
BEGIN
VALUE "FileVersion", "0.0.0.1\0"
VALUE "ProductVersion", "0.0.0.1\0"
VALUE "FileDescription", "Calculus Graph\0"
VALUE "InternalName", "AP Calc\0"
VALUE "LegalCopyright", "� Nick Lauber, under the GPL 2.0 license\0"
VALUE "OriginalFilename", "AP Calc.exe\0"
VALUE "ProductName", "Calculus Graph\0"
VALUE "CompanyName", "Nick Lauber\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 0x0000
END
END

CalcIcon ICON DISCARDABLE "AP Calc.ico"

Binary file added Calculus Graph/Old/AP Calc.undo
Binary file not shown.
Loading

0 comments on commit f275f65

Please sign in to comment.