Welcome Guest ( Log In  Register ) Search 
chugheswaypoint 
Posted: May 4 2010, 06:01 PM


I am not new to the forum. It's just been a long time since I visited regularly. I have been looking at past posts to this forum and a question that has come up a few times has been about constants and how to show the number 1. This has been a problem for me since I started using ExamView a couple of years ago. I came up with a solution that works. I only show this as another example of how to get around the programming.
Before I get started, I will let you know that when I input a dynamic equation/expression I use the equation editor. The following explanation and directions are based on this. The basic format of an expression in equation editor may look like this: ax^2+bx+c When the variable a is set to Coefficient(1st) and b is set to Coefficient this dynamic question looks nice (omit the + symbols when entering it into equation editor). When c is set to Coefficient the question works well until c = 1, then the computer does not show anything for c. Example: If a=3, b=2, and c=1 the expression looks like 3x^22x+ To get around this I made the variable c a general variable and created a new variable named "signc" and has the following programming: if(c>0," + ","") (note the spaces around the + symbol and the lack of a space for the "" part) What this does is applies the + sign to c if c is positive and if c is negative the negative sign stays and is not bothered. With this variable added the equation editor form now would look like: ax^2bxsigncc and produce: 3x^2  2x + 1 I will submit a question bank with this question type in it so that you can see the programming and see that it works nicely in the equation editor. 