| |
|
|
 Julian Schmidt | Das geht bisher nicht. Weder mit FreeProfan, noch mit XProfanX2.
Es folgt NICHT die erwartete Ausgabe -4, sondern diese Meldung.

@Roland: Kannst du das im nächsten Update implementieren? |
|
|
| |
|
|
|
 Jörg Sellmeyer | Da empfehle ich, den Wikipedia-Artikel zur Potenz zu studieren: [...] 
Erwartetes Ergebnis von -2^2 ist +4 -2^3 wäre -8
Warum das allerdings mit dem Operator nicht funktioniert, weiß ich auch nicht. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 22.04.2014 ▲ |
|
|
|
|
 Julian Schmidt | Nein. (-2)^2 ist +4. Bei -2^2 bzw. -(2^2) erwarte ich -4.
Schon komisch Ne. |
|
|
| |
|
|
|
 Jörg Sellmeyer | Na ja - das hier:
funktioniert ja auch klaglos. Vielleicht versteh ich nur grad dein Problem nicht... |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 22.04.2014 ▲ |
|
|
|
|
 RGH | Negative Zahlen können nicht potenziert werden, da dies eben lediglich bei Ganzzahlen funktionieren würde. Bei "-2^2" hat das - als Negationszeichen Vorrang vor dem ^ und entspricht also "(-2)^2", also negativer Wert.
Gruß Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 22.04.2014 ▲ |
|
|
|
|
 Jörg Sellmeyer | Ok - nur nochmal zur Klarstellung für mein begrenztes mathematisches Verständnis. "Negative Zahlen können nicht potenziert werden" heißt: "Negative Zahlen können nicht von XProfan potenziert werden", oder? Mein Taschenrechner kann das nämlich... auch mit Floatzahlen. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 22.04.2014 ▲ |
|
|
|
|
 RGH | Aber nicht, wenn die Zahl mit der potenziert wird, keine Ganzzahl ist, etwa -2^2.5. (Ok, wenn Dein Taschenrechner mit i-Zahlen klar kommt, ist das natürlich etwas Anderes. XProfan kennt nur den realen Zahlenraum.)
Gruß Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 23.04.2014 ▲ |
|
|
|
|
 Jörg Sellmeyer | Floatwerte als Exponent kann er auch nicht. Aber hier geht es ja um die Basis. Und da sollte doch auch ein negativer Floatwert kein Problem sein  "Mein" Taschenrechner ist übrigens der Windowsrechner in wissenschaftlicher Ansicht. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 23.04.2014 ▲ |
|
|
|
|
 Julian Schmidt | Ist übrings einfach umzusetzen.
Wäre natürlich toll, wenn XProfan dennoch mit komplexen Zahlen umgehen könnte... |
|
|
| |
|
|
|
 RGH | Jörg Sellmeyer (23.04.14)
Floatwerte als Exponent kann er auch nicht. Aber hier geht es ja um die Basis. Und da sollte doch auch ein negativer Floatwert kein Problem sein 
Da der Exponent vom Typ Float ist, werden negative Basen eben ausgeschlossen. (Das hängt auch damit zusammen, dass die Delphi-Formel, die x^y errechnet, aus diesem Grund bei negativer Basis einen Laufzeitfehler produziert. Natürlich könnte ich, wenn der Sonderfall ganzzahliger Exponent zutrifft, eine andere Formel bemühen ...
Gruß Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 23.04.2014 ▲ |
|
|
|
|
 Julian Schmidt | RGH (23.04.14)
Da der Exponent vom Typ Float ist, werden negative Basen eben ausgeschlossen. (Das hängt auch damit zusammen, dass die Delphi-Formel, die x^y errechnet, aus diesem Grund bei negativer Basis einen Laufzeitfehler produziert. Natürlich könnte ich, wenn der Sonderfall ganzzahliger Exponent zutrifft, eine andere Formel bemühen ...
Wäre toll, wenn auch irgendwann Taten folgen.... |
|
|
| |
|
|
|
 RGH | Jetzt gibt es nur noch eine Fehlermeldung wenn die Basis negativ UND der Exponent nicht ganzzahlig ist.
Gruß Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 25.09.2014 ▲ |
|
|
|