The following warnings occurred:
Warning [2] Trying to access array offset on value of type null - Line: 4475 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 4475 errorHandler->error
/inc/class_session.php 505 my_strlen
/inc/class_session.php 360 session->create_session
/inc/class_session.php 75 session->load_guest
/global.php 55 session->init
/showthread.php 22 require_once
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/showthread.php 110 forum_permissions
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/showthread.php 110 forum_permissions
Warning [2] Trying to access array offset on value of type null - Line: 1237 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1237 errorHandler->error
/inc/functions.php 2318 forum_permissions
/showthread.php 577 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 1772 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1772 errorHandler->error
/inc/functions_indicators.php 42 my_set_array_cookie
/showthread.php 585 mark_thread_read
Warning [2] Trying to access array offset on value of type null - Line: 1773 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1773 errorHandler->error
/inc/functions_indicators.php 42 my_set_array_cookie
/showthread.php 585 mark_thread_read
Warning [2] Undefined array key "forumread" - Line: 77 - File: inc/functions_indicators.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions_indicators.php 77 errorHandler->error
/inc/functions_indicators.php 45 fetch_unread_count
/showthread.php 585 mark_thread_read
Warning [2] Undefined array key "forumread" - Line: 1773 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1773 errorHandler->error
/inc/functions_indicators.php 218 my_set_array_cookie
/inc/functions_indicators.php 48 mark_forum_read
/showthread.php 585 mark_thread_read
Warning [2] Undefined array key "warninglevel" - Line: 5 - File: inc/functions_post.php(410) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(410) : eval()'d code 5 errorHandler->error
/inc/functions_post.php 410 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "button_pm" - Line: 57 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 57 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "button_multiquote" - Line: 59 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 59 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "" - Line: 2442 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 2442 errorHandler->error
/inc/functions_post.php 414 format_name
/showthread.php 994 build_postbit
Warning [2] Trying to access array offset on value of type null - Line: 2443 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 2443 errorHandler->error
/inc/functions_post.php 414 format_name
/showthread.php 994 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "useravatar" - Line: 20 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 20 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "userstars" - Line: 26 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 26 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "button_multiquote" - Line: 59 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 59 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined variable $moderationoptions - Line: 70 - File: showthread.php(1286) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/showthread.php(1286) : eval()'d code 70 errorHandler->error
/showthread.php 1286 eval





Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Step wise Equation Solving
07-05-2015, 08:56 PM
Post: #1
Step wise Equation Solving
I was writing a program to obtain the results of a linear quadratic equation and i used the jhplot.math.Numeric class to compute the results. I was wondering if i could

a) solve quadratic equation in a step by step fashion storing intermediate results.

for example :
x2-4x+3=0
x2-3x-x+3=0
x(x-3)-1(x-3)=0
(x-1)(x-3)=0
x=1 and x=3

b) plot the quadratic equation as a graph in 2d space.

I am using the data melt one jar file to write the program in java and am a newbie.

Any help in this regard would be much appreciated.

thanks.
Find all posts by this user
Quote this message in a reply
07-13-2015, 11:47 AM
Post: #2
RE: Step wise Equation Solving
Hello,

I'm not sure about intermediate steps, but to solve and
[/code][/php]plot quadratic equations are easy:

Code:
from jhplot.math.Numeric import *
b=solveQuadratic(1, 2, -1) #a=1, b=2, c=-1
print b.tolist()
from jhplot import *
c=HPlot()
c.visible()
c.setAutoRange()
f=F1D("x**2+2*x-1",-5,5)
c.draw(f)

Also, check Apache common math included into the package

best, Sergei

(07-05-2015 08:56 PM)mathemagic12 Wrote:  I was writing a program to obtain the results of a linear quadratic equation and i used the jhplot.math.Numeric class to compute the results. I was wondering if i could

a) solve quadratic equation in a step by step fashion storing intermediate results.

for example :
x2-4x+3=0
x2-3x-x+3=0
x(x-3)-1(x-3)=0
(x-1)(x-3)=0
x=1 and x=3

b) plot the quadratic equation as a graph in 2d space.

I am using the data melt one jar file to write the program in java and am a newbie.

Any help in this regard would be much appreciated.

thanks.
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)