Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9806 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-04-26 09:25 +0000 |
| Last post | 2012-04-26 09:25 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Print out an Expression Letter by Letter on the same line Bob Hanlon <hanlonr357@gmail.com> - 2012-04-26 09:25 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-04-26 09:25 +0000 |
| Subject | Re: Print out an Expression Letter by Letter on the same line |
| Message-ID | <jnb4al$5bo$1@smc.vnet.net> |
This hasn't been tested much but may be a start.
SetAttributes[slowPrint, HoldFirst];
slowPrint[expr_] := Module[
{k, len, in = ToString[expr],
nb = EvaluationNotebook[]},
len = StringLength[in];
k = 0;
While[k++ < len,
Pause[1/10];
NotebookWrite[nb, StringTake[in, k]];
SelectionMove[nb, All, Cell]]]
f[x] == Sin[x] // slowPrint
Bob Hanlon
On Wed, Apr 25, 2012 at 12:34 AM, Physics is Everything....Almost
<fizzycist@knology.net> wrote:
>
> I taught a course using Mathematica.....the problem I encountered with that was everything was all set to go, i.e. printed out completely..... and may have given the Students too much information all at once....
> I notice there is a Difference in watching an Instructor write an Expression on the Black board Letter by Letter....the mind has a chance to acclimate to what he is writing, etc....
> Hence, I wondered is there a way that I could get Mathematica to do that for me....example, Print out f[x] = Sin[x].....and be able to vary the Pause between letters until I find what is Optimum....
> I looked up Pause and Print , etc....with no Luck on how to put it on the same line....any suggestions?
> thanks....Jerry Blimbaum
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web