cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

piece-wise functions missing

StuartBruff
23-Emerald II

piece-wise functions missing

I note that if appears to be missing from the
functions - it's listed under Help, but doesn't
work. I can't see any mention of it (searched for
'if', 'conditional' & 'piece') in the Known Issues
list.

It's a little difficult to do recursion without it.

Stuart
6 REPLIES 6

I think it comes under the whole "programming not implemented" headding.

Although not strictly programming, it would probably require the same constructs.

Philip
___________________
Nobody can hear you scream in Euclidean space.

if works ... if ....

Think of it as an aptitude test. If you can't figure out how to use it, you're not fit for this product. Or maybe vice versa.

If can be inserted from the ribbon under functions. But not one of the normal categories, only under all functions. Where it resides under the piecewise continuous heading.

Further, if is not really a function (never has been). It is a keyword. To type it in you must assign the keyword label to it.
__________________
� � � � Tom Gutman
StuartBruff
23-Emerald II
(To:TomGutman)

On 8/17/2009 5:40:47 PM, Tom_Gutman wrote:
if works ... if ....

Think of it as an aptitude test. If you can't
figure out how to use it, you're not fit for this
product. Or maybe vice versa.

If can be inserted from the ribbon under
functions. But not one of the normal categories,
only under all functions. Where it resides under
the piecewise continuous heading.

Further, if is not really a function (never has
been). It is a keyword. To type it in you must
assign the keyword label to it.


Ah. Thanks for that. The colours of the vertical
scroll bar are so faint on my machine that I
hadn't seen them before on the 'all functions'
list.

Still haven't been able to type in the 'if'
keyword by either applying the keyword label, but
toggling the label (ctl-L) (although I can't see
any obvious indication of what label is in force)

I guess I'm probably the only to find it confusing
that in order to define a function as recursive,
it seems as if it has to be defined as a keyword
label, but used with a Variable label.

Stuart

I can get the if by typing in if and then applying the keyword label. I can apply the label either by selecting it from the ribbon or by cycling with ctl-l. I find the ctl-l to be essentially useless, as I have no idea what label I've gotten unless I'm looking at it on the ribbon. In which case I might as well select it from the ribbon.

I don't understand your comment about recursive functions. A recursive function can have any label. But it must have a label, unlike normal usage it cannot be unlabeled. But it need not be keyword, and probably should not be keyword.
__________________
� � � � Tom Gutman
StuartBruff
23-Emerald II
(To:TomGutman)

On 8/17/2009 8:09:45 PM, Tom_Gutman wrote:
== I can get the if by typing in if and then
applying the keyword label. I can apply the label
either by selecting it from the ribbon or by
cycling with ctl-l. I find the ctl-l to be
essentially useless, as I have no idea what label
I've gotten unless I'm looking at it on the
ribbon. In which case I might as well select it
from the ribbon.

I don't seem to be able to apply the label from
the ribbon, so ctl-L is the only option I've seem
to have got. I've changed the colours/styles on
the labels to make it easier to see, plus running
at higher than 100% zoom.

It would be nice, however, to see what label is
actually applied.

== I don't understand your comment about recursive
functions. A recursive function can have any
label. But it must have a label, unlike normal
usage it cannot be unlabeled. But it need not be
keyword, and probably should not be keyword.

After changing the fonts for each label, I've
found that any label will indeed allow recursive
definition ... except one label (or lack of label?
). If I type the definition straight in, it
doesn't work. I have to explicitly set a label
from one of the set.

Stuart

You should be able to see and apply labels from the math tab on the ribbon. When the cursor is on a symbol the label entry should show you the label currently applied (mostly none, but sometimes MC' assigns a label, and occasionally it is even correct). You should also be able to click on the label button to pull down a list of labels from which you can choose.

You don't seem to be able to apply a label, nor any formatting, to a literal. Apparently literals are no longer considered to be constants.
__________________
� � � � Tom Gutman
Top Tags