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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Bad Function

PhilipLeitch
2-Explorer

Bad Function

"Bad function"

Function(�sit�), Function(�STAY�)

Function("come boy")

GOOD FUNCTION!

Or is it more like �This is a bad %$# Function� I wouldn�t want to cross hash its object at night.


Seriously though... I'm not sure how a function can be "bad". It's like the old "Bad Command or File Name" - no it's NOT bad, it's just wrong.

Philip
___________________
Nobody can hear you scream in Euclidean space.
2 REPLIES 2


It turns out I had something like this:

c(X):= stuff
d(X):= yadda
f(X):= blah + d(X)


D(X):= d(X)-f(X)-C(X)

I'm not sure why it fell down, but it couldn't recognise that C wasn't defined as a function.

If I do this at the very top of a blank worksheet:
Y(X)=
I get an error stating that "this variable is undefined", but this:
C(X)=

Gives the bad function error... just does't like it.. C?

Philip
___________________
Nobody can hear you scream in Euclidean space.

On 8/27/2009 1:49:33 AM, pleitch wrote:
>"Bad function"
>Function(�sit�),
>Function(�STAY�)
>Function("come boy")
>GOOD FUNCTION!

Sad to say, but that's exactly what went through
my head when I saw the topic title 😞

>Or is it more like �This is a bad %$# Function�
I wouldn�t want to cross hash its object at night.

Yeah. It obviously came from a bad neighbourhood,
always picking arguments, causing division
wherever it goes,

>Seriously though... I'm not sure how a function
can be "bad". It's like the old "Bad Command or
File Name" - no it's NOT bad, it's just wrong.

The Law says that you've got to obey the Syntax.
You didn't obey the Syntax. You broke the Law and
that's Bad.


... well, OK; there are a couple of laws hanging
around from the 11th century that need cleaning up
and there are some errors in the current
legislation

However, ...

On 8/27/2009 2:09:21 AM, pleitch wrote:
>
>It turns out I had something
>like this:
>
>c(X):= stuff
>d(X):= yadda
>f(X):= blah + d(X)
>
>
>D(X):= d(X)-f(X)-C(X)
>
>I'm not sure why it fell down,
>but it couldn't recognise that
>C wasn't defined as a
>function.

>If I do this at the very top
>of a blank worksheet:
>Y(X)=
>I get an error stating that
>"this variable is undefined",
>but this:
>C(X)=
>
>Gives the bad function
>error... just does't like it..
>C?

Probably because 'C' is a unit, the coulomb and
'c' is the speed of light. It appears to give a
'bad' function whenever a constant is misused as a
function (try defining z:=3 then using that as
z(X)). Y, OTOH, is simply undefined.

Stuart
Announcements

Top Tags