This may or may not help, but the Nspire can definitely locate the
exact 3 solutions, but you have to make the request in a two-step
process. First, ask for the solutions, with or without the
constraints:
solve(cos(t^(2))=((1)/(2)),t)
The response is:
t=((√(3*(6*n2+1)*π))/(3)) and 6*n2+1≥0 or t=((−√(3*(6*n2+1)*π))/(3))
and 6*n2+1≥0 or t=((√(3*(6*n2-1)*π))/(3)) and 6*n2-1≥0 or
t=((−√(3*(6*n2-1)*π))/(3)) and 6*n2-1≥0
The Nspire is providing 4 possible solutions for this problem. Think
of these as 4 sets of solutions, with the value of n2 defining the
individuals members of each set.
Now have the Nspire provide you with a (sub)set of each of the four
sets in the following way:
solnset1:=seq(when(6*n+1≥0 and 0<((√(3*(6*n+1)*π))/(3))<π,((√(3*(6*n
+1)*π))/(3)),"na","na"),n,−5,5)
The response is:
{"na","na","na","na","na",((√(3*π))/(3)),((√(21*π))/
(3)),"na","na","na","na"}. This set contains 2 of the three
solutions.
solnset2:=seq(when(6*n+1≥0 and 0<((−√(3*(6*n+1)*π))/(3))<π,((−√(3*(6*n
+1)*π))/(3)),"na","na"),n,−5,5)
The response is:
{"na","na","na","na","na","na","na","na","na","na","na"}. This set
contains none of the three solutions.
solnset3:=seq(when(6*n-1≥0 and 0<((√(3*(6*n-1)*π))/(3))<π,
((√(3*(6*n-1)*π))/(3)),"na","na"),n,−5,5)
The response is:
{"na","na","na","na","na","na",((√(15*π))/(3)),"na","na","na","na"}.
This set contains 1 of the three solutions.
solnset4:=seq(when(6*n-1≥0 and 0<((−√(3*(6*n-1)*π))/(3))<π,
((−√(3*(6*n-1)*π))/(3)),"na","na"),n,−5,5)
The response is:
{"na","na","na","na","na","na","na","na","na","na","na"}. This set
contains none of the three solutions.
When a larger subset is required, you can change the endpoints of the
sequence command. Check the reference manual for more info about
seq() and when() commands.
Sorry for all the code in the body of the email, but without being
able to upload files now, this was the easiest way I could find. (I
do not have the group content forwarded to my personal email.)
Wayne
On 4 May, 01:26, Jimmy Fullerenex <
smoat...@gmail.com> wrote:
> THX Nelson. So you mean that we can't ask TI to automatically locate the
> exact 3 solutions that the constraint is referring to? I've fully understood
> your method of obtaining solutions of interest manually.
> Cheers,
> Jimmy Fullerenex
>
> 2011/5/4 Nelson Sousa <
nso...@gmail.com>
>
>
>
> > The difference between the two cases has to do with the
> > simplifications performed while solving the equation. Different
> > expressions use different algorithms. But the two answers should give
> > the same numerical results, regardless of the way they look.
>
> > As for the "mess":
>
> > n1, n2, ... represent arbitrary integer constants. For example,
> > solve(sin(x)=x,x) returns n1*Pi, which means all integer multiples of
> > Pi are solutions of the equation.
>
> > Restricting the domain of the equation limits the scope of those
> > constraints. But doesn't eliminate them. Nspire prefers to represent
> > solutions of trig equations with arbitrary integers instead of
> > displaying all possible values (which may be infinite).
>
> > Even with 0<t<Pi, you have more than one solution in each branch.
> > Check it out replacing n1, n2 or whatever constant was displayed by 0,
> > 1, 2, -1, -2, etc. (negative values will return false)
>
> > Cheers,
> > Nelson
>
> > On Tue, May 3, 2011 at 03:48, Jimmy Fullerenex <
smoat...@gmail.com> wrote:
> > > Hi Nelson,
> > > I've attached the screenshots. The two different inputs seem to get two
> > > different messes. :-)
> > > Cheers,
> > > Jimmy Fullerenex
>
> > > 2011/5/2 Nelson Sousa <
nso...@gmail.com>
>
> > >> what are you getting?
>
> > >> On Mon, May 2, 2011 at 12:25, Jimmy Fullerenex <
smoat...@gmail.com>
> > wrote:
> > >> > Yes Nelson, I tried your method yet unfortunately the result turned
> > out
> > >> > to
> > >> > be an even messier pile...
> > >> > Is there a better way?
> > >> > Cheers,
> > >> > Jimmy Fullerenex
>
> > >> > 2011/5/2 Nelson Sousa <
nso...@gmail.com>
>
> > >> >> try like solve(cos(t^2)=1/2 and t>0 and t<Pi,t)
> > >> >> The | operator imposes restrictions on the expression, namely when
> > you
> > >> >> need to restrict a variable to stay within its domain. It influences
> > >> >> the way simplifications are carried away when evaluating the
> > >> >> expression, for example.
>
> > >> >> But that's not what you want. In fact you want to solve a system of 3
> > >> >> conditions, an equation and two inequalities.
>
> > >> >> Cheers,
> > >> >> Nelson
>
> > >> >> On Mon, May 2, 2011 at 07:19, Jimmy Fullerenex <
smoat...@gmail.com>
> >
http://lafacroft.com/archive/nspire.php- Hide quoted text -
>
> - Show quoted text -