I want to put in the plus or minus symbol (+/- in ASCII) into a text region (standard math), as in the quadratic formula. I am using the classic interface in version 9.5. Can this be done?
In this example, you can get out of the standard math after y = \xB1 and then add 6. Or use the multiplication sign, y = \xB1*6 - treat it as if it was a name, something like x. It would also work without a space between \xB1 and 6, but they would be too close to each other and 6 would be italicized. The problem is not with \xB1 - it would be the same problem, say, for y = x 6.
Another example - the quadratic formula can be entered as
Also, exiting standard math & then adding the 6 doesn't work if you have a complicated expression where +/ is in the middle of the expression,all of which you wish to convert to standard math. Try, for example, writing the quadratic formula in standard math in a text region. I hope you can do it.
Multiplication sign usually works OK. I did the quadratic formula as an example (above). The example with y = \xB1 x works only because Maple inserts the multiplication sign itself - select the formula, click on it and look at the formula in the toolbar. That works the same, say, for y = x z.
Remember, I'm talking about putting the standard plus-or-minus symbol into "standard math in a text region." Again, the pending example is the quadratic formula. If it is possible to do this, let me see it.
Try to type it (in standard math mode, i.e. after Ctrl+R, for example) instead of copying and pasting. Copying and pasting, by the way, worked OK for me, too (in Maple 12). If that doesn't work, one might try to use `\xB1` (with backticks) instead of \xB1.
... beauty is in the eye of the beholder and Maple is not a type setting tool ... I already commented on that ... and mentioned a mathematical standard for notation in those case, take it or leave it - type in Standard sheet and copy paste in text region:
Comments
\xB1
If you are already in standard math (inside text), then \xB1 will produce the plus-minus sign.
Alec
\xB1 doesn't work
\xB1 doesn't work. I tried
y = \xB1 6
but Maple is unable to convert that to an expression.
Again, I'm inserting nonexecutable standard math in a text region, using the classic interface in 9.5.
Alla
For example
In this example, you can get out of the standard math after y = \xB1 and then add 6. Or use the multiplication sign, y = \xB1*6 - treat it as if it was a name, something like x. It would also work without a space between \xB1 and 6, but they would be too close to each other and 6 would be italicized. The problem is not with \xB1 - it would be the same problem, say, for y = x 6.
Another example - the quadratic formula can be entered as
x[1,2] =(-b*\xB1*sqrt(b^2-4*a*c))/2/a
Alec
It works -- to a degree
I find it weird that
y = \xB1 x
works, but
y = \xB1 6
gives a syntax error.
Also, exiting standard math & then adding the 6 doesn't work if you have a complicated expression where +/ is in the middle of the expression,all of which you wish to convert to standard math. Try, for example, writing the quadratic formula in standard math in a text region. I hope you can do it.
Multiplication sign
Multiplication sign usually works OK. I did the quadratic formula as an example (above). The example with y = \xB1 x works only because Maple inserts the multiplication sign itself - select the formula, click on it and look at the formula in the toolbar. That works the same, say, for y = x z.
Alec
Problem persists
I copied & pasted your quadratic formula, but it doesn't work. Maple simply replaced
*\xB1
with
xB1
Alla
abuse of a CAS
I will never eally understand, why one expects a CAS to be a typesetting system as well ...
The following may cover your needs
s in {`+`,`-`};Using Axel's suggestion
Thanks for your suggestion, Axel, but how do you use it? The pending example is the quadratic formula. Would you please write it out?
Alla
I would not use it :-)
I would not use it - for the reason I already said.
Just type your formulae like " y = f(x) + s*g(x), s in {+1,-1} " which is a common way,
i.e. a factor taking the desired values.
Axel, your suggestion doesn't work
Remember, I'm talking about putting the standard plus-or-minus symbol into "standard math in a text region." Again, the pending example is the quadratic formula. If it is possible to do this, let me see it.
Alla
Type it
Try to type it (in standard math mode, i.e. after Ctrl+R, for example) instead of copying and pasting. Copying and pasting, by the way, worked OK for me, too (in Maple 12). If that doesn't work, one might try to use `\xB1` (with backticks) instead of \xB1.
Alec
well ...
... beauty is in the eye of the beholder and Maple is not a type setting tool ... I already commented on that ... and mentioned a mathematical standard for notation in those case, take it or leave it - type in Standard sheet and copy paste in text region:
(-b +sigma*sqrt(b^2-4*c))/2, sigma in {+1,-1};