Read

Replies

9

ViewsRead

So I just finished up a way to solve Standard Form Quadratic Equations, Now I want to code a way to automatically Convert a given Standard Form equation to Vertex Form, or Vertex to Standard. Is it possible due to the fact that you have to get a perfect square ...

by
Doogledude123
45
in Java
Replies

44

ViewsRead

Alright so I'm coding a Quadratic Equation Solver to help with my Math Class. However the teacher requires each calculation to be written out. I have the solver working, however I'm not sure where to start when it comes to printing each step. I know I will need to each ...

by
Doogledude123
45
in Java
Replies

16

ViewsRead

Looking for how to write code to compute for quadratic equation on a vb.net application

by
Roily Lucky
in VB.NET
Reply

6

ViewsRead

Code Snippet:
Quadratic Equation Solver - C++ Sub-routine

Here is my first Code Snippet contribution: a C++ sub-routine that computes the roots of a quadratic equation. Notes: This sub-routine checks if a = 0. IF a = 0, then the equation is actually not a quadratic equation; it is a linear equation with one--if any--root. IF the user ...

by
DavidB
44
in C++
Replies

108

ViewsRead

Solved
Quadratic Probing

Review for a final and I had a question... You are give a hash function h(x) = x%11 and the size of the hash table is 11. The inputs are 4371,1323,6173,4199,4344,9679,1989. What would the resulting hash table be using quadratic probing. Would I start with 4371 and then do the ...

by
FUTURECompEng
in Java
Replies

5

ViewsRead

Hi, I seem to be having a problem with my code below, which I would like to be able to use to return 2 values from the result of a quadratic equation operation. The eReturn function takes care of negative square root values. I'm not getting any errors back, just ...

by
collin_ola
in C
Replies

5

ViewsRead

Hello...just started learning C and i'm trying to write a program that solves quadratic equations...but every time i compile and run it and enter the 3 variables it crashes. I kept on looking but didn't find anything wrong with it...help? :P include <stdio.h> main(){ int a,b,c; float x1,x2; printf("Please enter ...

by
Sommy
in C
Replies

5

ViewsRead

Wrote this for my college open evening just to give prospective students a taste of python. added a little "information" section just to bulk it out a bit (this section is slightly messy i know). Not sure if it works in command line, definitely works in IDLE but the command ...

by
DoubleTapThat
in Python
Reply

2

ViewsRead

im trying to write a code that i can input a,b,c and the code will run it in the quadratic formula and give me the answer but i keep getting a error problem import math from math import sqrt print print ("Welcome to the Quadratic Program") print ("--------------------------------") print a=input("Enter ...

by
Wilha
in Python
Replies

3

ViewsRead

hi in my text book i have this problem. how to program this Define a class Quadratic_int that stores the coefficients of a quadratic polynomial in a dynamically allocated array of integers. Supply the "big three" memory management functions. Use this class to demonstrate (a) the difference between initialization Quadratic_int ...

by
iamuser_2007
-1
in C++
Replies

6

ViewsRead

Code Snippet:
A C# class to solve a quadratic equation

[TEX]Solve an equation of the form Ax^2 + Bx + C = 0.[/TEX] The class is commented, but if you have any questions don't be affraid to ask. You may exercise this class in a console application with the following snippet : QuadraticEquation z = new QuadraticEquation(1, 3, 3); z.Solve(); ...

by
ddanbe
2,231
in C#
Replies

10

Views