Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10448
| From | Dana DeLouis <dana01@me.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: modulo solving lacking domain? |
| Date | 2012-06-13 08:55 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jr9kh9$3j0$1@smc.vnet.net> (permalink) |
> Solve[12*n==8,n,Modulus->20]
> {{n->4+5*C[1]}}
>
> It omits C[1] element of Integers.
Hi. Don't know where one would find this, so try:
Solve[12*n==8,n,Integers,Modulus->20]
Solve::mdom: Warning: Mathematica is ignoring domain specification Integers;
option setting Modulus -> 20 implies domain integers modulo 20.
There you go!
.. Modulus -> 20 implies domain integers :>)
// And the solution appears to check ok.
Table[Mod[12(4+5 c), 20], {c, -3, 10}]
{8,8,8,8,8,8,8,8,8,8,8,8,8,8}
= = = = = = = = = =
HTH :>)
Dana DeLouis
Mac & Math 8
= = = = = = = = = =
On Jun 12, 3:02 am, Richard Fateman <fate...@cs.berkeley.edu> wrote:
> Solve[12*n==8,n,Modulus->20]
>
> returns
> {{n->4+5*C[1]}}
>
> It omits C[1] element of Integers.
> I doubt that this is a feature; is it a bug?
>
> C[1] is not necessarily a member of the finite field of
> integers modulo 20. It is obvious not an arbitrary Real.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: modulo solving lacking domain? Dana DeLouis <dana01@me.com> - 2012-06-13 08:55 +0000
csiph-web