quadratic Questions
4
Solved
I am trying to do a simple quadratic function that would return number of roots and their values via an enum:
enum QuadraticResult {
None,
OneRoot(f32),
TwoRoots(f32, f32),
}
fn solveQuadratic...
2
CLPFD-systems are not primarily targeted to handle quadratic equations efficiently, nevertheless, are there better ways to formulate problems like the following?
It seems the problem boils down to...
4
Solved
I have three points in 2D and I want to draw a quadratic Bézier curve passing through them. How do I calculate the middle control point (x1 and y1 as in quadTo)? I know linear algebra from college ...
3
Solved
I was doing a program to compare the average and maximum accesses required for linear probing, quadratic probing and separate chaining in hash table.
I had done the element insertion part for 3 ca...
Fanelli asked 25/8, 2012 at 10:35
5
Solved
I'd like to calculate a point on a quadratic curve. To use it with the canvas element of HTML5.
When I use the quadraticCurveTo() function in JavaScript, I have a source point, a target point and ...
2
Solved
I'm looking for an approach to splitting a four sided shape into a grid. For example:
Ultimately I need to be able to convert the resulting shapes to SVG, but I'm happy to handle conversion to/fr...
Cotsen asked 10/6, 2018 at 13:34
1
Solved
This is my sample data. I want to plot both y1 and y2 against x1 in a single plot. This is what I did:
library(ISLR)
library(ggplot2)
y1<-scale(Auto$horsepower,scale = T,center=T)
y2<-scale...
1
Solved
I was reading the Go programming language book (by Donovan and Kernighan) and about their example echo1, they said: "This is a quadratic process that could be costly if the number of arguments is l...
3
Solved
I have the following linear regression:
import statsmodels.formula.api as sm
model = sm.ols(formula = 'a ~ b + c', data = data).fit()
I want to add a quadratic term for b in this model.
Is there ...
Demolish asked 13/8, 2015 at 3:18
3
Solved
I have a quadratic curve drawn on html canvas using context.quadraticCurveTo(controlX, controlY, endX, endY); .
I have the control-point and the starting and end points, which are not necessarily ...
Photolysis asked 8/2, 2012 at 13:48
3
Solved
Here's an interesting puzzle.
Below is an R snippet that identifies the tangency point of a quadratic function with respect to a line drawn from the point (0,rf) on the y-axis.
For those famili...
Disable asked 10/5, 2012 at 1:5
2
I've implemented marching cubes, dual marching cubes and adaptive marching cubes in C#, only to find out that I need dual contouring for my purposes.
I've read all works about dual contouring and I...
Dysphemism asked 24/5, 2013 at 12:17
1
Solved
I am trying to use solve.QP to solve a portfolio optimization problem (quadratic problem)
Total 3 assets
There are 4 constraints:
sum of weights equal to 1
portfolio expected return equals to 5...
Argos asked 6/6, 2014 at 20:20
5
The only Google search result I found is QuadProg++ but it can not solve the quadratic programming problem whose matrix is not applicable for Cholesky decomposition.
So can anyone give me so...
3
I have to write a read method for a quadratic class where a quadratic is entered in the form ax^2 + bx + c. The description for the class is this:
Add a read method that asks the user for an equat...
6
Solved
I am trying to write a function in C++ that solves for X using the quadratic equation. This is what I have written initially, which seems to work as long as there are no complex numbers for an answ...
2
Solved
I have a question regarding formula curving through a control point.
As you know, HTML Canvas has quadraticCurveTo(x1, y1, x2, y2) with x1 and x2 being the control point.
However when you try to d...
2
Solved
I'm looking for a good easy to use Java based Quadratic Programming (QP) solver.
Googling around I came across ojAlgo (http://ojalgo.org).
However, I was wondering if there are any other/...
Jackofalltrades asked 8/7, 2009 at 0:17
2
Solved
I currently have a class called Polynomial, The initialization looks like this:
def __init__(self, *termpairs):
self.termdict = dict(termpairs)
I'm creating a polynomial by making the keys the...
Gheber asked 28/11, 2011 at 0:36
3
I have two independent variables, GSH and Gls. Using these two variables, I'm trying to predict an outcome, prob. Using a function of the form:
prob=a*Gls^2+b*GSH^2+c*Gls+d*GSH+e // (where a,b,c,d...
Addendum asked 18/11, 2011 at 19:54
1
© 2022 - 2024 — McMap. All rights reserved.