Re: My problem in Maxima: The if-statement
- From: "Peter Christensen" <PeCh@xxxxxxxxxxx>
- Date: Thu, 9 Mar 2006 12:54:18 +0100
<earthnut@xxxxxx> skrev i en meddelelse
news:1141866153.936689.283250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
0^x = 0 for x <> 0
sorry, 0^x = 0 for x > 0, but for x < 0 it is not a number
I agree. 0^0 or 0^(negative value) also cause error messages in Maxima.
It can be a little confusing sometimes. 0^0 '=' 0^(-0) '=' 1/ (0^0), which
again causes 'division by zero'. 0^0 can't really be defined, not even with
this rule. One could think that 0^0 simply equals 0, but then the question
is: Is it 0^0 '=' 0 or is it 1/(0^0) '=' 1/0 -> infinite?
On the statement, that I wrote:
f(x):= if x>1 then 1 else 0;
I found this solution:
h(x):= 1/2 * signum(x-1) + 1/2;
(On signum(x); in Maxima: x=-1 for x<0, x=0 for x=0 and x=1 for x>0)
So that problem doesn't matter so much anymore.But I need this if-statement
for something else, because this f(x) was just an example.
PC
.
- Follow-Ups:
- Re: My problem in Maxima: The if-statement
- From: earthnut@xxxxxx
- Re: My problem in Maxima: The if-statement
- References:
- My problem in Maxima: The if-statement
- From: Peter Christensen
- Re: My problem in Maxima: The if-statement
- From: William Elliot
- Re: My problem in Maxima: The if-statement
- From: Peter Christensen
- Re: My problem in Maxima: The if-statement
- From: earthnut@xxxxxx
- Re: My problem in Maxima: The if-statement
- From: Peter Christensen
- Re: My problem in Maxima: The if-statement
- From: earthnut@xxxxxx
- Re: My problem in Maxima: The if-statement
- From: earthnut@xxxxxx
- My problem in Maxima: The if-statement
- Prev by Date: Re: Tychonov, Frink and Engelking
- Next by Date: Re: Simple proof of FLT: Why is it impossible?
- Previous by thread: Re: My problem in Maxima: The if-statement
- Next by thread: Re: My problem in Maxima: The if-statement
- Index(es):
Relevant Pages
|