| 556 | Check if #6816 is fixed:: |

| 557 | |

| 558 | sage: var('t,theta') |

| 559 | (t, theta) |

| 560 | sage: integrate(t*cos(-theta*t),t,-oo,oo) |

| 561 | 0 |

| 562 | sage: integrate(t*cos(-theta*t),(t,-oo,oo)) |

| 563 | 0 |

| 564 | sage: integrate(t*cos(-theta*t),(t)) |

| 565 | (t*theta*sin(t*theta) + cos(t*theta))/theta^2 |

| 566 | sage: integrate(t*cos(-theta*t),(-oo,oo)) # probably shouldn't be allowed to work, but for now we let it |

| 567 | 0 |

| 568 | sage: integrate(x^2,(x)) # this worked before |

| 569 | 1/3*x^3 |

| 570 | sage: integrate(x^2,(x,)) # this didn't |

| 571 | 1/3*x^3 |

| 572 | sage: integrate(x^2,(1,2)) # this case should always be allowed to work |

| 573 | 7/3 |

| 574 | sage: integrate(x^2,(x,1,2)) |

| 575 | 7/3 |

| 576 | sage: integrate(x^2,(x,1,2,3)) |

| 577 | Traceback (most recent call last): |

| 578 | ... |

| 579 | ValueError: (x, 1, 2, 3) is not valid input to integral() |

| 580 | |

| 607 | if type(v) is tuple: |

| 608 | if len(v)==1: # just a variable |

| 609 | return integral(expression,v[0]) |

| 610 | elif len(v)==2: # just endpoints, no variable; could be dangerous |

| 611 | return integral(expression,v[0],v[1]) |

| 612 | elif len(v)==3: # endpoints and variable |

| 613 | return integral(expression,v[0],v[1],v[2]) |

| 614 | else: |

| 615 | raise ValueError, "%s is not valid input to integral()"%repr(v) |