分散文件结构,添加了枚举类型的一个辅助类
This commit is contained in:
8
Sample/FeigenbaumConstant.meta
Normal file
8
Sample/FeigenbaumConstant.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 50284f9be7a194b46ae71888697a7264
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Sample/FeigenbaumConstant/FeigenbaumConstant.meta
Normal file
8
Sample/FeigenbaumConstant/FeigenbaumConstant.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5af7e005eb125b74b966d59e1ebcf090
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
6
Sample/FeigenbaumConstant/FeigenbaumConstant/App.config
Normal file
6
Sample/FeigenbaumConstant/FeigenbaumConstant/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
32
Sample/FeigenbaumConstant/FeigenbaumConstant/App.config.meta
Normal file
32
Sample/FeigenbaumConstant/FeigenbaumConstant/App.config.meta
Normal file
@@ -0,0 +1,32 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 26aa23cdf06a1c149940bd9e7a9f753b
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 1
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7437ebf70336c604f837a7d3ce4ffbcc
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 813aec0738ebeb74ebef4f2ed251ecfc
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
55
Sample/FeigenbaumConstant/FeigenbaumConstant/Program.cs
Normal file
55
Sample/FeigenbaumConstant/FeigenbaumConstant/Program.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FeigenbaumConstant
|
||||
{
|
||||
/// <summary>
|
||||
/// 费根鲍姆常数计算器
|
||||
/// <code>
|
||||
/// 费根鲍姆常数是一个现代科学计算的常数,
|
||||
/// 是被周期分叉及混沌现象的一个比值,约为4.669,
|
||||
/// 世界乃至宇宙万物的规律都跟这个常数有关,
|
||||
/// 包括生物神经电现象,经济,电流,交通流,甚至水龙头滴出来的水都有这个现象。
|
||||
/// </code>
|
||||
/// </summary>
|
||||
internal class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 当前人口
|
||||
/// </summary>
|
||||
static decimal px= 2;
|
||||
|
||||
/// <summary>
|
||||
/// 当前增长率
|
||||
/// </summary>
|
||||
static decimal pr = 2;
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine($"开始人口{px},增长率{pr}");
|
||||
while(px >= 0)
|
||||
{
|
||||
px = RobertMay_PopulationGrowthModel(pr, px);
|
||||
Console.WriteLine($"{px}");
|
||||
}
|
||||
Console.ReadKey();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用来计算的公式,
|
||||
/// 这里使用的是 罗伯特·梅 的 人口增长模型
|
||||
/// </summary>
|
||||
/// <param name="r">人口增长率</param>
|
||||
/// <param name="xn">第n代人口,</param>
|
||||
/// <returns>输出X_n+1表示下一代的人口</returns>
|
||||
static decimal RobertMay_PopulationGrowthModel(decimal r, decimal xn)
|
||||
{
|
||||
// X_n+1 = r X_n ( 1 - X_n )
|
||||
|
||||
return r * xn * (1 - xn);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Sample/FeigenbaumConstant/FeigenbaumConstant/Program.cs.meta
Normal file
11
Sample/FeigenbaumConstant/FeigenbaumConstant/Program.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 966be8e483dde584fbda8a4377bd77bf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a5bc2d12b7dc7740999c7585accccf8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("FeigenbaumConstant")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FeigenbaumConstant")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("ee221233-2074-4a7d-a0d0-1ddec5624dc4")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f7c7d85220ad4346bbfa3665f4f7a0e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Sample/FeigenbaumConstant/FeigenbaumConstant/bin.meta
Normal file
8
Sample/FeigenbaumConstant/FeigenbaumConstant/bin.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9f096beb45698c41ae41c2142520894
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5fad2166d2e250848a1e46a6f82dbeea
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -0,0 +1,32 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f2435f80b4bc6954b82c112d091c0f0c
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 1
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6b103c29d45eea47afaa9939fc49374
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Sample/FeigenbaumConstant/FeigenbaumConstant/obj.meta
Normal file
8
Sample/FeigenbaumConstant/FeigenbaumConstant/obj.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ecbcedec3e2fe8a43820fb40ce3f295d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6fe415040d3d67e4091b6cdec7abfb46
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c25c49f9c87f7ad489d78e0be2f4412d
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eb381742126580b42b6574ccf0877128
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bd9fc11cd56677040b2bb913bcbf3338
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\bin\Debug\FeigenbaumConstant.exe.config
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\bin\Debug\FeigenbaumConstant.exe
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\bin\Debug\FeigenbaumConstant.pdb
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\obj\Debug\FeigenbaumConstant.csproj.AssemblyReference.cache
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\obj\Debug\FeigenbaumConstant.csproj.SuggestedBindingRedirects.cache
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\obj\Debug\FeigenbaumConstant.csproj.CoreCompileInputs.cache
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\obj\Debug\FeigenbaumConstant.exe
|
||||
G:\UnityProject\MyPrit\Packages\com.lrss3.xericlibrary\Sample\FeigenbaumConstant\FeigenbaumConstant\obj\Debug\FeigenbaumConstant.pdb
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce636184b8aeab043b2ab413db44175f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf0612e25fc294849a90ec46579e58d3
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2cedfacef3c91b44bb4e22b96041f59a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 081141d0177247448aedd101e596e33f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user