📄 test_hypersphere_area.m
字号:
% Test function for hypersphere area.clc; clear all; close all;% Check the area for a couple special cases.r = 13;hypersphere_area(1, r) - 2hypersphere_area(2, r) - 2*pi*rhypersphere_area(3, r) - 4 * pi * r^2% Display the volume of the unit hypersphere as a function of dimension.dimensionCount = 20;area = zeros(1,dimensionCount);for dimensionIndex = 1:dimensionCount, area(dimensionIndex) = hypersphere_area(dimensionIndex);endplot(1:dimensionCount, area, '*')title('Area of a unit hypersphere a function of Dimension')xlabel('Dimension')ylabel('Area')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -