Carl Love

Carl Love

28110 Reputation

25 Badges

13 years, 120 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@brian bovril 

All I can recommend is practice, asking questions, and constant re-reading of the help pages. Writing programs about primes is a good place to start. My first program, 35 years ago, was a program that generated primes by trial division.

@brian bovril 

All I can recommend is practice, asking questions, and constant re-reading of the help pages. Writing programs about primes is a good place to start. My first program, 35 years ago, was a program that generated primes by trial division.

If you increase Digits over the hardware-float threshold of 15, then the rounding errors disappear.

@abbeykabir

Good question. In M[.., [1,2]], the .. means "take all rows"; and the overall expression means "take all rows and columns 1 & 2 of M". If it was M[[1,2], ..], it would mean "take rows 1 & 2 and all columns". See ?rtable_indexing .

What do you mean by "modify the shape"? The shape is determined by the data. Or do you mean the style, like dashed lines and dotted lines?

@abbeykabir

Good question. In M[.., [1,2]], the .. means "take all rows"; and the overall expression means "take all rows and columns 1 & 2 of M". If it was M[[1,2], ..], it would mean "take rows 1 & 2 and all columns". See ?rtable_indexing .

What do you mean by "modify the shape"? The shape is determined by the data. Or do you mean the style, like dashed lines and dotted lines?

Indeed, you can include the inequalities in the solve command:

solve({x+y+z=6, x^2+y^2+z^2=14, x^3+y^3+z^3=36, x >= y, y >= z});

Indeed, you can include the inequalities in the solve command:

solve({x+y+z=6, x^2+y^2+z^2=14, x^3+y^3+z^3=36, x >= y, y >= z});

@N00bstyle The interface setting displayprecision is completely separate from the computational engine. Indeed, your variables will be maintained internally at 15 digits. The setting only affects how they are displayed.

In my opinion, 15 is the best default value for Digits, rather than Maple's default of 10.

@N00bstyle The interface setting displayprecision is completely separate from the computational engine. Indeed, your variables will be maintained internally at 15 digits. The setting only affects how they are displayed.

In my opinion, 15 is the best default value for Digits, rather than Maple's default of 10.

@Kitonum 

The step length AD must be a multiple of primorial(n) where n is the progression length, except when the first prime in the progression is n itself, in which case AD must be a multiple of primorial(n-1).

Some other examples of the exceptional case are

2, 3  (AD = 1 = primorial(2-1))
3, 5, 7  (AD = 2 = primorial(3-1))
5, 11, 17, 23, 29  (AD = 6 = primorial(5-1))

@Kitonum 

The step length AD must be a multiple of primorial(n) where n is the progression length, except when the first prime in the progression is n itself, in which case AD must be a multiple of primorial(n-1).

Some other examples of the exceptional case are

2, 3  (AD = 1 = primorial(2-1))
3, 5, 7  (AD = 2 = primorial(3-1))
5, 11, 17, 23, 29  (AD = 6 = primorial(5-1))

@Kitonum See the Wikipedia article that I referenced above. The step length AD must be a multiple of primorial(n) where n is the progression length. Primorial(n) is the product of all primes less than or equal to n.

Primorial(7) = 210.

If AD were equal to 2, then every 3rd term would be divisible by 3, every 5th term divisible by 5, and every 7th term divisible by 7. So there could not be a sequence of primes of length 7.

@Kitonum See the Wikipedia article that I referenced above. The step length AD must be a multiple of primorial(n) where n is the progression length. Primorial(n) is the product of all primes less than or equal to n.

Primorial(7) = 210.

If AD were equal to 2, then every 3rd term would be divisible by 3, every 5th term divisible by 5, and every 7th term divisible by 7. So there could not be a sequence of primes of length 7.

Sorry, I had a typo which I've now corrected. I forgot to include the index variable before the range.

Sorry, I had a typo which I've now corrected. I forgot to include the index variable before the range.

First 613 614 615 616 617 618 619 Last Page 615 of 710