i am real sorry if this seems like a trivial question .. But I have a
project due tomorrow and i can't figure out what is wrong. I am doing a
program that differentiates a mathematical equation. the algorithm seems
to work fine but I have a problem when the list is a little long : I get
answers including a pound sign # some friends told me it was something
generated by the interpreter but couldnt fix it... so I was wondering if
anybody has any ideas
thanx alot
sorry if this question is too trivial but i seriously dont have time to
look for the answer
"A.Z." <··········@aol.com> writes:
> i am real sorry if this seems like a trivial question .. But I have a
> project due tomorrow and i can't figure out what is wrong. I am doing a
> program that differentiates a mathematical equation. the algorithm seems
> to work fine but I have a problem when the list is a little long : I get
> answers including a pound sign # some friends told me it was something
> generated by the interpreter but couldnt fix it... so I was wondering if
> anybody has any ideas
> thanx alot
> sorry if this question is too trivial but i seriously dont have time to
> look for the answer
It might be *print-length*. If it has a value, try setting it to nil:
* (setf *print-length* 3)
3
* '(a b c)
(A B C)
* '(as easy as 1 2 3)
(AS EASY AS ...)
* (setf *print-length* nil)
NIL
* '(as easy as 1 2 3)
(AS EASY AS 1 2 3)
--
/|_ .-----------------------.
,' .\ / | No to Imperialist war |
,--' _,' | Wage class war! |
/ / `-----------------------'
( -. |
| ) |
(`-. '--.)
`. )----'
"A.Z." <··········@aol.com> wrote in message ······················@aol.com...
> i am real sorry if this seems like a trivial question .. But I have a
> project due tomorrow and i can't figure out what is wrong. I am doing a
> program that differentiates a mathematical equation. the algorithm seems
> to work fine but I have a problem when the list is a little long : I get
> answers including a pound sign # some friends told me it was something
> generated by the interpreter but couldnt fix it... so I was wondering if
> anybody has any ideas
> thanx alot
> sorry if this question is too trivial but i seriously dont have time to
> look for the answer
Try changing the current value of *print-level*. Without
example output it's difficult to diagnose problems, this
is just a reasonable guess.
-------
Geoff
* "A.Z." <··········@aol.com>
| i am real sorry if this seems like a trivial question .. But I have a
| project due tomorrow and i can't figure out what is wrong. I am doing a
| program that differentiates a mathematical equation. the algorithm seems
| to work fine but I have a problem when the list is a little long : I get
| answers including a pound sign # some friends told me it was something
| generated by the interpreter but couldnt fix it... so I was wondering if
| anybody has any ideas
When this happens in the read-eval-print-loop (or listener) that you are
using, one easy way to get the whole result is to type this immediately
after you have received the answer:
(pprint *)
I think it is a feature of the listener to abbreviate returned values.
Please note that this has very little or nothing to do with *print-level*
or *print-length*. Those variables control the output of your own calls
to print (or pprint). The print of the listener should not use them, but
should have its own set of such printer control variables.
--
In a fight against something, the fight has value, victory has none.
In a fight for something, the fight is a loss, victory merely relief.
70 percent of American adults do not understand the scientific process.