unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [calc] what happened to a i ???
@ 2017-03-14  8:09 boffi
  2017-03-14  8:29 ` boffi
  0 siblings, 1 reply; 2+ messages in thread
From: boffi @ 2017-03-14  8:09 UTC (permalink / raw)
  To: help-gnu-emacs

If I try to integrate sin(x) sin(2 x) this is what I get NOW, using
Emacs 25 on Debian and the calc version (?) that is distributed with it

 | --- Emacs Calculator Mode ---
 |       /
 |      | 
 | 1:   | sin(x) sin(2 x) dx
 |      | 
 |     /  
 | 
 |     .
 |

while I'm pretty sure that I've been able to use calc to integrate such
simple expression at some point in the past.

On the other hand, I've installed a very old version of XEmacs and the
corresponding old version of calc and I have

 | --- Emacs Calculator Mode ---
 | 2:  sin(x) sin(2 x)
 | 
 |     2       3
 | 1:  - sin(x)
 |     3
 | 
 |     .
 |

so I'm inclined to think that I've something done something wrong...

Do I have to set some variable to get back the old behavior of calc?

Thank you in advance,
                                                                g




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [calc] what happened to a i ???
  2017-03-14  8:09 [calc] what happened to a i ??? boffi
@ 2017-03-14  8:29 ` boffi
  0 siblings, 0 replies; 2+ messages in thread
From: boffi @ 2017-03-14  8:29 UTC (permalink / raw)
  To: help-gnu-emacs

boffi <giacomo.boffi@gmail.com> writes:

> Do I have to set some variable to get back the old behavior of calc?

I have found that calc has a *Trace* buffer mechanism...

old XEmacs, old calc

 |  1  Integrating sin(X) sin(2 X)...
 |  1  Found 2:3 sin(X)^3 => 2:3 sin(X)^3
 |  1  Integral of sin(X) sin(2 X)  is  2:3 sin(X)^3
 | 
 | 
 | Begin rewriting
 |                                  2:3 sin(X)^3
 | 
 | (Phase 1)
 | 
 | Done rewriting:
 |                                  2:3 sin(X)^3

Emacs 25, its calc

 |  1  Integrating sin(X) sin(2 X)...
 |  1  Found cancelled => cancelled
 |  1  Simplifying... no change
 |   1 Integrating by substitution, u = 2 X
 |   2 Integrating sin(X / 2) sin(X) / 2...
 |   2 Found cancelled => cancelled
 |   2 Simplifying... simplified
 |   3 Integrating sin(X) sin(X / 2) / 2...
 |   3 Found cancelled => cancelled
 |   4 Integrating sin(X) sin(X / 2)...
 |   4 Found cancelled => cancelled
 |   4 Integral of sin(X) sin(X / 2)  is  nil
 |   3 Integral of sin(X) sin(X / 2) / 2  is  nil
 |   2 Integral of sin(X / 2) sin(X) / 2  is  nil
 |   2 Integrating 1:2 sin(X / 2) sin(X)...
 |   2 Found cancelled => cancelled
 |   2 Simplifying... simplified
 |   3 Integrating sin(X) sin(X / 2) / 2...
 |   3 Found cancelled => cancelled
 |   4 Integrating sin(X) sin(X / 2)...
 |   4 Found cancelled => cancelled
 |   4 Integral of sin(X) sin(X / 2)  is  nil
 |   3 Integral of sin(X) sin(X / 2) / 2  is  nil
 |   2 Integral of 1:2 sin(X / 2) sin(X)  is  nil
 |   1 Integrating by substitution, u = sin(X)

it seems that the old calc has more canned results under its belt,
but of course I may be wrong...

yours
                                                      g




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-14  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14  8:09 [calc] what happened to a i ??? boffi
2017-03-14  8:29 ` boffi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).