COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Re: How to disable Integrate[] ? #3

• Email
• Follow

```If you had the Presentations package you would have two approaches. (I have
to paste the text box formatting into the email for the output. If you paste
this into your notebook it will give the actual 2D formatted expressions.)

Needs["Presentations`Master`"]

1) Use the HoldOp command, which evaluates the arguments but holds an
explicit enclosing operation.

Integrate[x + x, {x, a + a, b + b}] // HoldOp[Integrate]

\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(2\ a\), \(2\ b\)]\(\(2\ x\)
\[DifferentialD]x\)\)

2) Use the Student's Integral integrate command, which allows you to hold
the evaluation and then do various manipulations on it before evaluating
either by a private integral table, or with the Mathematica Integrate or
NIntegrate commands.

integrate[x + x, {x, a + a, b + b}]
% // BreakoutIntegral
% // UseIntegrate[] // Expand

\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(2\ a\), \(2\ b\)]\(\(2\ x\)
\[DifferentialD]x\)\)

2 \!\(
\*SubsuperscriptBox[\(\[Integral]\), \(2\ a\), \(2\ b\)]\(x
\[DifferentialD]x\)\)

-4 a^2 + 4 b^2

Another advantage of integrate and UseIntegrate[assumptions] is that you
don't have to feed any assumptions into the integral until evaluation so it
always formats nicely as an unevaluated integral.

David Park
djmpark@comcast.net
http://home.comcast.net/~djmpark/

From: slawek [mailto:slawek@host.pl]

U=BFytkownik "Christoph Lhotka" <christoph.lhotka@univie.ac.at> napisa=B3w
> Simplifiy[...., ExcludedForms->{Integrate[__,_]}]

Nice, but it doesn't work, check yourself:

In[1]:= int1 = HoldForm[Integrate[x + x, {x, a + a, b + b}]];
In[2]:= int2 = HoldForm[Integrate[1/(1 + Sin[x]^(1/3)), {x, a + a, b + b}]];
In[3]:= Simplify[int1 // ReleaseHold,  ExcludedForms -> {Integrate[_, _ ]}]
In[4]:= Simplify[int2 // ReleaseHold,  ExcludedForms -> {Integrate[_, _ ]}]

> IntegrateH[expr,vars]

Yes, it is possible replace Integrate by an dummyIntegrate or similar
placeholder. It should be even possible to define some simple rules for
dummyInterate,
i.e. dummyIntegrate[a_,lst_]+ dummyIntegrate[b_,lst_] ->
dummyIntegrate[a+b,lst] and so on. But, I think that it is not the most
finesse way. I think that some global switch, like the iteration limit and
the recursion limit should work better. Unfortunatelly these limits don't
force Mathematica give up simplification but abort calculation with an
"Abort" msg.

slawek

```
 0

See related articles to this posting

0 Replies
200 Views

Similar Articles

12/7/2013 12:44:56 PM
page loaded in 79227 ms. (0)

Similar Artilces:

disable Pmw.Counter?
Does anyone know how to disable a Pmw.Counter? (make it so it cannot be changed, but you can still call the get() function to see its current value?) Thanks, -- Benjamin Rutt

Unable to disable tracing
.... or at least I would be if I had any. I am running a copy of 10G XE on a WinXP box. In a troubleshooting session some time ago, I turned on some additional tracing - and quite simply have been unable to turn it off. Below is an extract from one of my .trc files in my bdump directory. It's the alter session statements in this trace that I want to disable - they're resulting in way more trace files than I need now. I've tried ALTER SYSTEM statements, ALTER SESSION statements, to try to disable these statements, but they keep getting asserted again on instance restart. I'm sure I'll just smack myself in the head once I work this out, but can someone point me to where I can disable these statements? Given that it's XE, it'd probably be just as time-effective to reinstall as to dial this in... but still. Thanks kindly!! *** SERVICE NAME:(SYS\$USERS) 2010-02-02 09:46:36.593 *** SESSION ID:(31.46) 2010-02-02 09:46:36.593 ===================== PARSING IN CURSOR #6 len=69 dep=2 uid=0 oct=42 lid=0 tim=80934443123 hv=3164292706 ad='6688fd70' alter session set events '10046 trace name context forever, level 12

Disable the close buttons

How can I disable the blinking text cursor in the command window in Matlab (6.5.1.199709 (R13) Service Pack 1 on Solaris). I know that setting focus to another window will stop it, but I don't want it to blink, ever. Many other X applications use a blinkRate resource, but apparently Matlab doesn't. I'm running over VNC on a slow shared connection, and the blinking cursor really eats up the bandwidth.

RS232 Comunication Disable TIMEOUT
Hi, i'm sending a variable (double) in simulink and a m-file (Level 2) sfunction vis rs232 to my controller. My Problem is, that simulik aborts the simulation, because of a timeout. My question is now, is there a posibility to turn of the TIMEOUT-Function? thx mario

disable nis/yp
Hi I know how to disable NIS/YP on a solaris box, and that requires the client to be rebooted. Is there anyway I can disable it without having to reboot the client? How? Master is solaris 10, clients are solaris 8, 9, and 10. My NIS-master is being shutdown, and clients should no longer use it. Getting service windows to reboot all of them is really not desired. Thanks, Ole Michaelsen <nejtak@til.spam> writes: >Hi >I know how to disable NIS/YP on a solaris box, and that requires the client to >be rebooted. Is there anyway I can disable it without having to reboot the >client? How? >Master is solaris 10, clients are solaris 8, 9, and 10. >My NIS-master is being shutdown, and clients should no longer use it. Getting >service windows to reboot all of them is really not desired. Change nsswitch.conf (remove all references to NIS). nscd should then automatically restart and no new NIS queries would be send. (You should also kill ypbind on all of the client) Casper --

how to disable scsi diks
hi guys, im having some problem on my solaris box. there are times that i cant boot due to failiure in disk. my disk0 is fine, but my disk1 aint workin. how can i disable my disk1 so that evrytime i boot it it wont look for it? tia jepoy I would physically disconnect the disk if it is dodgy. The machine will probably then say it can't mount the file system on the disk, so go to the file /etc/vfstab and comment out the line for your second disk by adding a # at the start of the line. There are no doubt other ways of tackling this problem, too. Best wishes, Chris

disable pll not working?
Hy there I'm running a Zone on Solaris 10 which should provide xntpd services for other servers. As I cannot set the system time in a zone I do so in the globalzone using ntpdate. Here is the configuration (/etc/inet/ntp.conf): # Fall back to local clock server 127.127.1.0 fudge 127.127.1.0 stratum 9 # misc settings enable auth monitor disable pll driftfile /var/ntp/ntp.drift statsdir /var/ntp/ntpstats/ filegen peerstats file peerstats type day enable file loopstats type day enable file clockstats type day enable So pll meaning setting the local time is obviously disable. Even I...; -- > Ronan Flood <usenet@umbral.org.uk> Stifi wrote: > Hy there > I'm running a Zone on Solaris 10 which should provide xntpd services > for other servers. As I cannot set the system time in a zone I do so in > the globalzone using ntpdate. > If you can't set the time in a local zone, ntpd can't either!! Suggest you try running ntpd in the global zone. I don't understand what you are trying to do with disable pll, but see above! Also, you don't seem to have configured any internet servers or any hardware reference clock. If you are just trying

Disable automatic image resize
Hi everyone, I have a problem trying to load an image without the image resizing itself to fit into the window. My simple javascript is as follows: function viewImage(filename) { features = "height=500, width=670, scrollbars=yes, resizable=yes"; photo = window.open(filename, "Preview", features); } Could anyone advise? Thanx. Weng kin wrote on 10 aug 2003 in comp.lang.javascript: > Hi everyone, > > I have a problem trying to load an image without the image resizing > itself to fit into the window. My simple javascript is as follows: > > function v

how to disable keybindings for the listbox
Inside a figure, I have axes and listbox. I am getting keypress through the figure_keypressfcn. keypressed = get(gcf,'CurrentCharacter'); I only want the keypress to be effective on the axes but not on the listbox. However, it seems to me that I need a way to disable the keypress effect on the listbox because the listbox still reacts to the keypress by default. Any idea of how to do it? THanks. Raymond.