Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #233 > unrolled thread
| Started by | "I.N. Galidakis" <morpheus@olympus.mons> |
|---|---|
| First post | 2011-09-16 00:15 +0300 |
| Last post | 2011-09-16 05:06 +0300 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.soft-sys.math.maple
Unkown type? "I.N. Galidakis" <morpheus@olympus.mons> - 2011-09-16 00:15 +0300
Re: Unkown type? Joe Riel <joer@san.rr.com> - 2011-09-15 14:41 -0700
Re: Unkown type? acer <maple@rogers.com> - 2011-09-15 17:47 -0700
Re: Unkown type? "I.N. Galidakis" <morpheus@olympus.mons> - 2011-09-16 05:06 +0300
| From | "I.N. Galidakis" <morpheus@olympus.mons> |
|---|---|
| Date | 2011-09-16 00:15 +0300 |
| Subject | Unkown type? |
| Message-ID | <1316121315.333655@athprx04> |
While tinkering with Maple 9, I've encountered what looks like a type I've never seen before: true, 24 true, 13 true + 24 false This comes from an evaluation function for a board puzzle. It works ok, but how do I convert this type to its ordinal so I can do comparisons? I have a list of such values and I need to pick the element with the highest value. I tried ord(%), convert(%,decimal), etc., but nothing works. Thanks, -- I.
[toc] | [next] | [standalone]
| From | Joe Riel <joer@san.rr.com> |
|---|---|
| Date | 2011-09-15 14:41 -0700 |
| Message-ID | <87wrd91o1x.fsf@san.rr.com> |
| In reply to | #233 |
"I.N. Galidakis" <morpheus@olympus.mons> writes: > While tinkering with Maple 9, I've encountered what looks like a type > I've never seen before: > > true, > 24 true, > 13 true + 24 false > > This comes from an evaluation function for a board puzzle. It works > ok, but how do I convert this type to its ordinal so I can do > comparisons? > > I have a list of such values and I need to pick the element with the > highest value. What is the value of the ordinal of the above? 24? 24*false? -- Joe Riel
[toc] | [prev] | [next] | [standalone]
| From | acer <maple@rogers.com> |
|---|---|
| Date | 2011-09-15 17:47 -0700 |
| Message-ID | <3d80669c-6f7f-4f1f-8cdf-df97efb34422@glegroupsg2000goo.googlegroups.com> |
| In reply to | #233 |
Is this enough?
> [true, 24*true, 13*true+24*false];
[true, 24 true, 13 true + 24 false]
> map(evalhf,%);
[1., 24., 13.]
[toc] | [prev] | [next] | [standalone]
| From | "I.N. Galidakis" <morpheus@olympus.mons> |
|---|---|
| Date | 2011-09-16 05:06 +0300 |
| Message-ID | <1316138815.336811@athprx04> |
| In reply to | #235 |
acer wrote: > Is this enough? > >> [true, 24*true, 13*true+24*false]; > > [true, 24 true, 13 true + 24 false] > >> map(evalhf,%); > > [1., 24., 13.] Yes. Thanks. -- I.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.maple
csiph-web