English
Includes

maths slight made - INCLUDE with leichtem code.

 
- Page 1 -



Gary12345
Hi,

I have a Include based on leichtem XPROFAN code prepares.

Download

functions from the code ablesbar!

10 kB
Hochgeladen:02/01/13
Downloadcounter262
Download
 
MfG
Gary12345
01/27/13  
 



 
- Page 2 -



Gary12345

CompileMarkSeparation
Proc Lösungsformel1'Wert bei -b-...

    parameters a!,b!,c!
    declare r!
    set("decimals",2)
    r!=-b!-sqrt(b!*b!-4*a!*c!) / 2*a!
    return ROUND(r!,2)

En
/a>

Testwert:
CompileMarkSeparation
var Test1! = Lösungsformel1(1,2,1)
print Test1!

If I it correctly. see, is The function then so:

Lösungsformel(a,b,c).

supply with whom oberen Testwerten still incorrect values back. with others Values crashes it again ex?

LG
 
XProfan X2
MfG
Gary12345
01/28/13  
 




Thomas
Freier
Such still time in the WEB. Z.B.: [...] 
 
Gruß Thomas
Windows XP SP2, XProfan X2
01/28/13  
 



probier time r!=b!+sqrt(abs(b!*b!-4*a!*c!)) / 2*a! because XProfan::sqrt negatives
values at Param net so endearing win likes.
 
01/28/13  
 




Gary12345

CompileMarkSeparation
Proc Lösungsformel1'Wert bei -b-...

    parameters a!,b!,c!
    declare r!
    set("decimals",2)
    r!=b!+sqrt(abs(b!*b!-4*a!*c!)) / 2*a!
    return ROUND(r!,2)

En
/a>

gives of my view still incorrect values back? is someone the others opinion? but zumindestens no Fehlermeldungen More.
 
XProfan X2
MfG
Gary12345
01/28/13  
 




Julian
Schmidt
Hello gary,

probier time. if The same values rauskommen should it correctly. his.
r!=((b!/a!)/2)+sqrt(abs(((b!/a!)/2)^2-(c!/a!)))
r!=((b!/a!)/2)-sqrt(abs(((b!/a!)/2)^2-(c!/a!)))


Greeting

Julian

[OFFTOPIC]The new boxing fallen I do not. New day "Slant-Box" would beautiful. otherwise I will well or ill for this Forum a new Textbaustein for a simple HTML-Box for me to introduce must. [/OFFTOPIC]
 
XProfan X2
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
01/28/13  
 



[OFFTOPIC]
Julian Schmidt (28.01.13)

The new boxing fallen I do not. New day "Slant-Box" would beautiful. otherwise I will well or ill for this Forum a new Textbaustein for a simple HTML-Box for me to introduce must.


Habs you installed (see your Posting) -

always since with the ideas for such Codes!
[/OFFTOPIC]
 
01/28/13  
 




E.T.
gary12345 (28.01.13)

...
has someone a Idea of quadratischen Gleichungen.
...


Jo, I !! so are Fussboden-Fliesen mostly quadratic and wenn's redeploying is, ought to everything same his

time sincere, ought to one not, if one such Berechnungen manage wants, wenigsten the help gehörige maths "gelöffelt" having ??

gary12345 (28.01.13)

gives of my view still incorrect values back?


question or Feststellung ??
what wären because then The right values ??
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
01/29/13  
 




Gary12345
Hi,

@Julian Schmidt) come two different values out.
yet others Proposals?



time sincere, ought to one not, if one such Berechnungen manage wants, wenigsten the help gehörige maths "gelöffelt" having ??


1. written can I these calculate
2. The Conversion of written To CODE is tougher as virtual

Bye
 
MfG
Gary12345
01/29/13  
 




Julian
Schmidt
Hello gary,
No even not!
to Überprüfung of my Lösungsformel of supra, here again The control:


r!=((b!/a!)/2)+sqrt(abs(((b!/a!)/2)^2-(c!/a!)))
r!=((b!/a!)/2)-sqrt(abs(((b!/a!)/2)^2-(c!/a!)))


Erstmal The rechnerische Solution of/ one task...
3x²+9x+6=0 | : 3
x²+3x+2=0

now having we..
p=3 and q=2
now settle we into PQ-Formel one.
means
x1/2 = -(p / 2) +/- root2( (p / 2) ^ 2 - q )
x1/2 = -(3 / 2) +/- root2( (3 / 2) ^ 2 - 2 )

now dissolve. means
x1/2 = -1,5 +/- root2( 2,25 - 2 )
x1/2 = -1,5 +/- root2( 0,25 )
x1/2 = -1,5 +/- 0.5
x1=-1
x2=-2


here come two Solutions out. -1 and -2.

now the whole yet with my supra geposteten Formel.
CompileMarkSeparation
CLS
print PQ(3,9,6)
waitinput

Proc PQ

    parameters a!,b!,c!
    set("decimals",2)
    var Lösungsformel1! = -((b!/a!)/2)+sqrt(abs(((b!/a!)/2)^2-(c!/a!)))
    var Lösungsformel2! = -((b!/a!)/2)-sqrt(abs(((b!/a!)/2)^2-(c!/a!)))
    return Str$(ROUND(Lösungsformel1!,2))+" | "+Str$(ROUND(Lösungsformel2!,2))

oc


The spending says me just as -1 and -2

The Formel is correct means!

LG

Julian
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
01/29/13  
 




Gary12345
was one fallacy, sorry. Have (blöderweise) virtual, that The two values (means The outputted of XPROFAN) same his should. was naturally one Leichtsinnsfehler!

Thank you!
 
XProfan X2
MfG
Gary12345
01/29/13  
 




Julian
Schmidt
well sooner one grobfahrlässiger Denk and maths-Error.

you should too prevent the negatives roots pulled go can, otherwise becomes you another nice Error Message against jumping. likewise with Division through 0.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
01/29/13  
 




Gary12345
Jo I have whom suggestion get, a globale Fehlervariable How mErr& To use. will be but first look, I the any functions (The I me pictured have) incorporate and then can Yes weiterschaun, what draus becomes.

Thank you!
 
MfG
Gary12345
01/29/13  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

51.181 Views

Untitledvor 0 min.
Erhard Wirth06/14/24
XProfan Newbie02/18/23
rafl06/21/22
Member 229993110/21/19
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie