# reduce_trig for matrices

I am trying to reduce the trig functions of the following symbolic matrix:

```
[ sin(1/2*B)*cos(1/2*B) I*sin(1/2*B)^2 - 1/2*I]
[-I*sin(1/2*B)^2 + 1/2*I -sin(1/2*B)*cos(1/2*B)]
```

I expect:

```
[1/2*sin(B), -1/2*I*cos(B)]
[1/2*I*cos(B), -1/2*sin(B)]
```

But get: Traceback (click to the left of this block for traceback) ... AttributeError: 'sage.matrix.matrix_symbolic_dense.Matrix_symbolic_dense' object has no attribute 'reduce_trig'

Traceback (most recent call last):

```
File "<stdin>", line 1, in <module>
File "_sage_input_170.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("KFJ4KEIpKkl5KlJ4KC1CKSkucmVkdWNlX3RyaWcoKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpTc7DZX/___code___.py", line 2, in <module>
exec compile(u'(Rx(B)*Iy*Rx(-B)).reduce_trig()
File "", line 1, in <module>
File "element.pyx", line 306, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:2666)
File "parent.pyx", line 272, in sage.structure.parent.getattr_from_other_class (sage/structure/parent.c:2840)
```

What am I doing wrong?

Thank you for your help.

you can use the "code" button (little picture of 0's and 1's) to format code (such as the traceback lines) correctly

See also http://trac.sagemath.org/sage_trac/ticket/10552