This commit is contained in:
2024-11-18 20:38:48 +08:00
parent b425fe89af
commit a1ab16834b
3 changed files with 4 additions and 4 deletions

View File

@@ -32,8 +32,8 @@
int main(int argc, char const *argv[])
{
gctl::array<double> x(NUM), y(NUM), z(NUM*NUM);
gctl::sequence(x, -2.0*GCTL_Pi, 0.04*GCTL_Pi);
gctl::sequence(y, -2.0*GCTL_Pi, 0.04*GCTL_Pi);
x.sequence(-2.0*GCTL_Pi, 0.04*GCTL_Pi);
y.sequence(-2.0*GCTL_Pi, 0.04*GCTL_Pi);
for (size_t i = 0; i < NUM; i++)
{

View File

@@ -33,7 +33,7 @@ int main(int argc, char const *argv[])
{
gctl::array<double> x(NUM), y(NUM);
gctl::sequence(x, -2.0*GCTL_Pi, 0.04*GCTL_Pi);
x.sequence(-2.0*GCTL_Pi, 0.04*GCTL_Pi);
for (size_t i = 0; i < NUM; i++)
{
y[i] = sin(x[i]);