我正在尝试学习C并且遇到无法使用真正的大数字(即100位,1000位等).我知道存在这样做的库,但我想尝试自己实现它.
我只是想知道是否有人或者可以提供任意精度算术的非常详细,愚蠢的解释.
给定两种颜色和n步,如何计算n种颜色,包括产生淡化效果的两种给定颜色?
如果可能的话,伪代码是首选,但这可能是用Java实现的.
谢谢!
下面是我如何设置表示MandelBrot集合的数组的伪代码,但是当保留1:1的宽高比时,它会变得非常紧张.
xStep = (maxX - minX) / width;
yStep = (maxY - minY) / height;
for(i = 0; i < width; i++)
for(j = 0; j < height; j++)
{
constantReal = minReal + xStep * i;
constantImag = minImag + yStep * j;
image[i][j] = inSet(constantReal, constantImag);
}
Run Code Online (Sandbox Code Playgroud)
谢谢!
如何在 Pascal 中使用网络套接字? xad\xc2\xx xc2\xad\xc2\xad\xc2\xad\xc2\xad\xc2\xad\xc2\xad\xc2\xad\xc2\xad\xc2\xad\ xc2\xad\xc2\xad\xc2\xad\xc2\ xad\xc2\xx xc2\xd\xc2\xd\xc2\xd
\n我最近有一块主板死了,并使用板载RAID控制器使用两个硬盘驱动器进行RAID 1。我想知道是否可以在非RAID设置中使用其中一个驱动器并正常访问它。
编辑:如果有帮助,它是一个Intel D975XBX2。
procedure DoSomething(a_1, ... a_n)
p = a_1
for i = 2 to n
temp = p
for j = 1 to a_i
p = p * temp
DoSomething(10,2,2,2)
Run Code Online (Sandbox Code Playgroud)
我们的结果好坏参半.我们其中一人得到10 ^ 7,其他10 ^ 27.
我想我发现了我的错误...我每次都用10代替p,而不是temp的新值.
编辑:这是我的工作:
{10, 2, 2, 2}
p = 10
i = 2 to 4
temp = p = 10
j = 1 to 2
p = 10 * 10 = 10^2
p = 10^2 * 10 = 10^3
i = 3 to 4
temp = 10^3
j …
Run Code Online (Sandbox Code Playgroud) math ×2
biginteger ×1
bignum ×1
colors ×1
fade ×1
fractals ×1
hardware ×1
pascal ×1
portability ×1
pseudocode ×1
raid ×1
sockets ×1