Hi. I am new to moodle and using java and such to wrote math problems.

I use PSpad and either upload the file in aiken or gift format. Doing this for English and reading is easy, but math is a little tricky. I ready about ASCII and latex but those still seem a little confusing.

For instanace: @@y=(x+2)^2/(3x)@@ {=correct ~wrong ~wrong ~wrong }

that comes out with no syntax errors.

But this one does: @@2sin^-1(1)@@ {=correct ~wrong ~wrong ~wrong }

or

@@hat(ab) bar(xy) ulA vec v dotx ddot y@@ {=correct ~wrong ~wrong ~wrong }

and

$$[(36-:12)*(24-:3)]-:[(1*3)-(18-:9)]=?$$ {=24 ~3 ~8 ~16 ~20}

Before and after each questions I place @@ there. Except for the last one. For the last one, i placed $$.

Some either say syntax error or they do not display what I want displayed. What am I doing wrong? Do I need some sort of program? I do not know any javascript or programming language. All of the above came from some other site. I just tried to see if I could reproduce the same results. If anyone could give me a step by step procedure on how to work this, that would be great.

Thanks in advance

-Frank

### Help with math_sytax errors

Number of replies: 4### Re: Help with math_sytax errors

Well, I am sure you will find help, but I am a little unclear on exactly what you are doing and what you need help with....

As you can see, if I put 2\sin^{-1}1 inside doubledollar signs the tex filter at moodle.org will display the proper tex: $$2\sin^{-1}1$$ which appears to be the expression you were trying to have displayed.

You should first understand that Moodle can employ a number of different filters, and it looks like you are trying to use the algebra filter which uses I believe the double @ signs, but are expecting the tex filter to work, which uses double dollars signs.... so the first order of business is for you to understand which filters are in place and working on your moodle.

Once you have checked that we can talk about the functioning of one filter at a time so that there is less likelihood of confusion. I would suggest that you disable the algebra filter in your moodle and enable the tex filter, then test the tex install to make sure it is fully operational.

asciimathml and jsmath are other options for displaying math, but either of those have to be added to Moodle....

As you can see, if I put 2\sin^{-1}1 inside doubledollar signs the tex filter at moodle.org will display the proper tex: $$2\sin^{-1}1$$ which appears to be the expression you were trying to have displayed.

You should first understand that Moodle can employ a number of different filters, and it looks like you are trying to use the algebra filter which uses I believe the double @ signs, but are expecting the tex filter to work, which uses double dollars signs.... so the first order of business is for you to understand which filters are in place and working on your moodle.

Once you have checked that we can talk about the functioning of one filter at a time so that there is less likelihood of confusion. I would suggest that you disable the algebra filter in your moodle and enable the tex filter, then test the tex install to make sure it is fully operational.

asciimathml and jsmath are other options for displaying math, but either of those have to be added to Moodle....

### Re: Help with math_sytax errors

Hi, thanks for the help. I do think I need to understand the differences between tex filter and algebra filter etc. but when i put 2\sin^{-1}1 inside two dollar signs, i get this instead 2sin_1

### Re: Help with math_sytax errors

So..... first things first you need to determine which filters are turned on in your moodle. Are you the admin of the moodle or is it run by someone else? Filters are accessed via the admin block so if you do not have admin rights you will need to address your concerns to the admin.

In either case, have you reviewed this http://docs.moodle.org/en/TeX_notation_filter and this http://docs.moodle.org/en/algebra_filter

In either case, have you reviewed this http://docs.moodle.org/en/TeX_notation_filter and this http://docs.moodle.org/en/algebra_filter

### Re: Help with math_sytax errors

cool, thanks. I will look into that more. I appreciate the help.