Package: mathomatic
Version: 15.1.1-1
Severity: normal

Hi Sandro,

Thank you very much for maintaining mathomatic.

It's beautiful.

The main reason I'm writing is that I happened to
notice that it looped and hung while simplifying a
certain expression.

Simplification normally works just fine for me,
and completes in about a second.

However, I stumbled across a certain expression
that 
    
    a.) may be the longest I've ever tried, 
    
    b.) which caused mathomatic to loop and hang
    for at least twelve minutes, and 

    c.) which didn't hang yacas.

Of course, such a long expression may take a
dramatically longer time. 

However, it occurred to me that it may also have
elicited a bug in mathomatic that you, George or
John would like to know about.

Here's how to try to duplicate the loop and hang:

    $ mathomatic
    Mathomatic version 15.1.1 (www.mathomatic.org)
    Copyright (C) 1987-2010 George Gesslein II.
    100 equation spaces available, 1920 kilobytes per equation space.
    ANSI color mode enabled; disable with the -c option or "set no color".
    1-> ((x1 + x2)/(-726.3548906221 + x3) * (1493.65900817852 - x3 - 
x2/285.946168729486) - (2391.71487361977 - x2 - x4/x1 + (x1/-33.4332005849023 + 
(x2 + 601.014563414837)))) * ((x1 - x3)/(x5 - x1) * ((x2 + x1)/(x3/x6)) + ((x5 
- x3) * (1060.41588200083 + x6) - x7/-1868.54489975123 * (1294.49645770241 + 
x1))) * (x4/(101.841561917172 * 724.19713191029/x3/(488.836746189477/x2 - 
2140.34616016522) * x3) + (x5 - x2) - (-73.2228647564266 + x4)/(x1 * 
(-655.030850644544 * -349.504474341077 * x2)) + (x5 * x3 * (x3 * x3) - 
(449.984687146771 + x6 - x1 * x5)) - (-398.446071820363/x3 + (x6 + x7) + (x3 - 
x6) * (x3/x4) - (x5 - x3) * (x1/x4)/(x3 - x6 - x2/x3)))/((x2 + 
x2)/(-1274.65946696117 - x2)/(-2128.40759764725 - 115.839759951838 - 
-947.98732487969/x5) * ((x5 + x4) * (x1 * -326.004090030187) - (x7 * x2 + (x3 - 
x4))) * (x4/x2 * (x2 - 981.239826328081) * (x6 * x5 + (x6 + x2)) - (x7 - x6 - 
(-65.1987078089471 - x3)) * (1150.22202193359/x2 + x1/x3)) - (x5 * ((x7 - 
x3)/(-1086.15801483963 * -36
 4.817920012717))/x6 - (x5/142.571174373411 + (x4 + x4)) - (x5 + x5 + x1/x5) * 
((x1 + -396.518378536643) * (x2 * 124.620893111667)) + ((x4 + 
x4)/(2471.26258236645 - x6) - (x1 - x5 + (x2 - x5))) * ((x6 - x1) * (x5/x4) * 
(x7 - 2132.01221319628 - (x4 + 2408.0207863121)))))
    #1: (((x1 + x2)*(1493.6590081785 - x3 - (0.0034971617365716*x2))/(x3 - 
726.3548906221)) - 2992.7294370346 + x2 + (x4/x1) + (0.029910387952854*x1) - 
x2)*(((x1 - x3)*(x2 + x1)*x6/((x5 - x1)*x3)) + ((x5 - x3)*(1060.4158820008 + 
x6)) + (0.00053517579381322*x7*(1294.4964577024 + 
x1)))*((1.355870301252e-05*x4*x3*((488.83674618948/x2) - 2140.3461601652)/x3) + 
x5 - x2 - (4.3680289208972e-06*(x4 - 73.222864756427)/(x1*x2)) + (x5*x3*x3*x3) 
- 449.98468714677 - x6 + (x1*x5) + (398.44607182036/x3) - x6 - x7 - ((x3 - 
x6)*x3/x4) + ((x5 - x3)*x1/(x4*(x3 - x6 - (x2/x3)))))/(((x2 + x2)*(x4 - (x7*x2) 
- x3 - (326.00409003019*(x5 + x4)*x1))*((x4*(x2 - 981.23982632808)*((x6*x5) + 
x6 + x2)/x2) - ((x7 - x6 + 65.198707808947 + x3)*((1150.2220219336/x2) + 
(x1/x3))))/((-1274.6594669612 - x2)*((947.98732487969/x5) - 2244.2473575991))) 
- (2.5236598933365e-06*x5*(x7 - x3)/x6) + (0.0070140405618101*x5) + x4 + x4 + 
(124.62089311167*(x5 + x5 + (x1/x5))*(x1 - 396.51837853664)*x2) - ((((x4 + 
x4)/(2471.2625
 823664 - x6)) - x1 + x5 - x2 + x5)*(x6 - x1)*x5*(x7 - 4540.0329995084 - 
x4)/x4))

    1-> simplify 1

And that's where it hangs.

I hope this makes sense.

Feel free to contact me with any questions or
concerns, and thank you again for maintaining such
a fine package.

~K

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'lenny'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages mathomatic depends on:
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand
ii  libreadline6              6.1-3          GNU readline and history libraries

mathomatic recommends no packages.

mathomatic suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to