From: James Tursa on
"us " <us(a)neurol.unizh.ch> wrote in message <hjnc2i$m8p$1(a)fred.mathworks.com>...
> hey, how ya doin - guys
> my project was due yesternight, and i did not know what to do, and the professor now is very unhappy with me, and i now need you to help me urgently to get me goin, and i want you to send me the solution quickly - NOW
>
> we have
> a=3+4
> but we need
> b=2*6
> how can we do

Hey dude ... took sum wrk but got ur ansr

a=3+4

stumpd fer awhile, butt got a advanced math book 2 hlp me. U can just add those numbrs man. found a addition table and looked it up, its 7 ! (hey ... found the SAME number for 4+3, did u no that??!! Huh ...) So ya get this

a = 7

THEN, (this gunna blow you away, man!) you kin add 1 to BOTH SIDES! AT THE SAME TIME! NO KIDDIN!!! like this

a + 1 = 7 + 1

and then,man , didja know that you can seperate thoz numbers?? I mean, fer real !! That same dadgum addition table had 2+5=7 also (heck, now that I look at it, a LOT of numbers add up to 7 ... hmmmm ... this is gittin' confuzn ...). ANyway, do this

a + 1 = 2 + 5 + 1

*then* just add the 5+1 (i'm gettin good at the addition table .. heh heh)

a + 1 = 2 + 6

got stuck here. but that + is not too far away from the * on my keybrd, so heck, why not just use it instead???

a + 1 = 2 * 6

had to get sum more hlp here, but finalle found the answ in the Advanced Encryption for Dummies book. b is just the lettr rite after a, right? i mean, just one more letter after a is usually b. GET iT?!! man, so just incrypt the a stuff and you get

b = 2 * 6

hope this hlps with yer perfesser ...
From: Jan Simon on
Dear us!

> my project was due yesternight

So I think "due yesternight" means, that the problem is solved from a certain point of view.
Anyhow, let's answer the question:

> we have
> a=3+4
> but we need
> b=2*6
> how can we do

At first use a suiting representation of the data. String is good here. It works, is fast and handy even for beginners:
String1 = 'a=3+4';
This looks confusing due to the double apperance of equal chars, but this is ok, because the 2nd "=" is a level higher or deeper and its functional meaning only appears if you inhale living with the EVAL command. But don't do this.

The rest is straight:
String2 = strrep(String1, 'b', 'a');
String3 = strrep(String2, '3', '2');
String4 = strrep(String3, '+', '*');
Reply = strrep(String4, '4', '6');
That's it.

Another approach:
String1 = 'a=3+4';
Reply = char(String1 + polyval([1, -6, 11, -30, 48], 1:5) / 24)

Good luck, Jan
From: TideMan on
On Jan 27, 8:49 am, "James Tursa"
<aclassyguy_with_a_k_not_...(a)hotmail.com> wrote:
> "Matt Fig" <spama...(a)yahoo.com> wrote in message <hjnfkc$ci...(a)fred.mathworks.com>...
>
> > Sorry, not enough exclamation points.
>
> Or capital letters. The request can't be *that* urgent if the poster didn't even bother to write the subject line in all CAPS.

Now, come on you chaps.
Poor old us has been drinking beer and smoking dope and talking to his
girlfriend all term, and now he needs to finish his assignment (which
he hasn't even started).
He urgently needs our help to get him through this.
It behoves all of us to help him.
But I personally don't know where to start............
From: Jan Simon on
Dear TideMan!

> Poor old us has been drinking beer ...
> ...
> It behoves all of us to help him.

For a non-native speaker the 2nd sentence does me confuse. Does us means us or us?

Once I started to distinguish the word and name by writing <us> for the name, but then us started to call me <Jan> and I immedately stopped this.

Some write urs, but I'm not sure about the magically inserted r. Perhaps he starts to call me Jarn. I do not dare to ask, because I'd expect the answer: "Come on, let us call us us - it worked for years before you asked." And my confusion would grow.

Jan
From: Jos (10584) on
"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hjnm34$8td$1(a)fred.mathworks.com>...
* snip *
> Some write urs, but I'm not sure about the magically inserted r. Perhaps he starts to call me Jarn. I do not dare to ask, because I'd expect the answer: "Come on, let us call us us - it worked for years before you asked." And my confusion would grow.
>
> Jan

confursion?