arctan - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


combine/arctan

combine arctangent terms

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

combine(f, arctan)

combine(f, arctan, m)

Parameters

f

-

any expression

m

-

the name 'symbolic'

Description

• 

The command combine(f, arctan) combines sums of arctangents in expressions by applying the following transformations:

arctan⁡x+arctan⁡y=csgn⁡x2+1x⁢π2x=1yarctan⁡x+y−x⁢y+1x⁢y<1orcsgn⁡x≠csgn⁡yarctan⁡x+y−x⁢y+1+csgn⁡x⁢πotherwise

  

If the input is a difference of two arctangents arctan(x) - arctan(y) then the above transformations are applied to arctan(x) + arctan(-y) .

• 

If the conditions required for the transformations cannot be determined by Maple, then the arctangents are not combined.  If the optional argument symbolic is specified, and the conditions cannot be determined, then transformation arctan⁡x+arctan⁡y=arctan⁡x+y−x⁢y+1 is applied regardless.

• 

Note, that in order to determine whether the transformations rules can be applied, one must be able to write an expression in the form

  

a+b⁢arctan⁡c±arctan⁡d .

  

This is not always easy to do so the code may fail to combine arctangent terms because of this.

Examples

> 

f≔arctan⁡1−I+arctan⁡12+12⁢I

f≔arctan⁡1−I+arctan⁡12+I2

(1)
> 

combine⁡f&comma;arctan

π2

(2)
> 

f≔arctan⁡13+arctan⁡15+arctan⁡17+arctan⁡18

f≔arctan⁡13+arctan⁡15+arctan⁡17+arctan⁡18

(3)
> 

combine⁡f&comma;arctan

π4

(4)
> 

f≔arctan⁡13+arctan⁡14

f≔arctan⁡13+arctan⁡14

(5)
> 

combine⁡f&comma;arctan

arctan⁡711

(6)
> 

f≔3⁢arctan⁡13−2⁢arctan⁡14+arctan⁡15

f≔3⁢arctan⁡13−2⁢arctan⁡14+arctan⁡15

(7)
> 

combine⁡f&comma;arctan

arctan⁡427536

(8)
> 

f≔a⁢arctan⁡13+a⁢arctan⁡14+b⁢arctan⁡15

f≔a⁢arctan⁡13+a⁢arctan⁡14+b⁢arctan⁡15

(9)
> 

combine⁡f&comma;arctan

a⁢arctan⁡711+b⁢arctan⁡15

(10)
> 

combine⁡arctan⁡x+arctan⁡1xassumingx::real

signum⁡x⁢π2

(11)
> 

f≔arctan⁡x+arctan⁡y&colon;

> 

combine⁡f

arctan⁡x+arctan⁡y

(12)
> 

combine⁡f&comma;arctan&comma;symbolic

arctan⁡x+y−x⁢y+1

(13)
> 

assume⁡0<x&comma;0<y&comma;1≤x⁢y

> 

f=combine⁡f&comma;arctan

arctan⁡x~+arctan⁡y~=arctan⁡x~+y~−x~⁢y~+1+π

(14)
> 

assume⁡x<0&comma;0<y

> 

f=combine⁡f&comma;arctan

arctan⁡x~+arctan⁡y~=arctan⁡x~+y~−x~⁢y~+1

(15)

See Also

combine/trig