## How to divide the area under a curve into equal segments

I am trying to divide the area under a curve given in tabulated form into equal area segments. I have to solve the following integral and find a set of points x_0,x_1,...,x_k,x_N for which the following holds Unfortunately, I don't really see how to

## How to solve this set of nonlinear trigonometric equations in Java?

I am trying to solve a system of trigonometric equations in Java, but I don't know where to start. I've used commons-math3 before to solve simple linear sets of equations, but this is above my head. Equations I am trying to solve: a - e + bcosθ1 + cs

## Solve 4 parameter constants (Rodbard equation) using Python

I am new to python and what I am trying to do is write an algorithm to solve for the 4 unknown parameters in the Rodbard Equation where we are relating a grayscale value measured using ImageJ to optical density calibration discs. This equation is non

## Loop to solve a number of nonlinear equations with nleqslv in R

I have a problem in solving a number of non-linear equations with nleqslv in R in order to solve for a distance-to-default measure. This is my first R code, so I am still struggling with some problems. My code looks like this (miniaturized to a three

## Scipy - System of nonlinear equations with linear constraints (beginner)

I have seen this amazing example. But I need to solve system with boundaries on X and F, for example: f1 = x+y^2 = 0 f2 = e^x+ xy = 0 -5.5< x <0.18 2.1< y < 10.6 # 0.15< f1 <20.5 - not useful for this example # -10.5< f2 < -0.16 -

## What does it mean when we solve the equation and only the hooks come back in maxima

What does it mean when solving equation and only brackets come back in maxima? I tried to solve for phi and it keeps phi on both sides. I try to solve for A and it comes back with brackets Any ideas why? Here's the equation eq2:acos(A*cos((2*%pi*f*t+

## Sympy Python nonlinear equation solving for hydraulics - Need to solve TypeError ('unable to convert expression to float')

I am trying to write a piece of python script to automate a quite time consuming task in some hydraulics problems, that occur in civil engineering. The equation is from Colebrook-White, and is the following: I have written the following code: from ma

## PROC NLIN from SAS to R

I have been currently assigned a work where I need to translate a SAS code to R. I have been able to successfully do 80% of it and now I am stuck at the part where PROC NLIN is used. From what I read, PROC NLIN is used to fit Non-Linear Models andI a

## R: Using the equation with natural logarithm in nls

Good day, I am struggling with R and natural logarithm (ln). Firstly, I cannot find a ln(x) function in R. I have noticed that log(x) is the same as ln(x) (when using ln(x) with a calculator). In R: log(5) = 1.609438 And with a calculator: ln(5) = 1.

## MATLAB - Need help to draw a highly nonlinear function

This is the equation that I want to plot in MATLAB - I want to sweep the variable Vbi from -5 to +5 and then plot the variable T for each individual value of Vbi (essentially T vs. Vbi) for Nd = Na =1015, 1016 and 1017. I know Vbi can be swept by cre

## Least nonlinear squares in R - Levenberg Marquardt to adjust the parameters of Heligman Pollard's model

I am attempting to reproduce the solutions of paper by Kostakis. In this paper an abridged mortality table is expanded to a complete life table using de Heligman-Pollard model. The model has 8 parameters which have to be fitted. The author used a mod

## Solving the nonlinear equation in matlab

I need to know how to solve a system of nonlinear equations but varying a parameter, so that every time you change that parameter will throw me the result of that system (need all results), I thought a for, which is changing the parameter, solve the

## nonlinear equation R

I like to fit a nonlinear equation(g and h are the parameters): q = g * (h**age)/(1 + g * (h**age)); restrict q = .05 when age = 50: i.e. g * (h*50)/(1 + g (h**50)= .05. This means when age = 50 the predicted value q equals the q in the data. Thanks

## Maximization of the nonlinear equation in Java

I want to determine the value of x for which a certain function (similar to the next one) is maximized: It is clear that the maximum of A is reached when x = 0, and then A = 200. How could I solve this problem in Java? Update: Sorry for not making it

## Exit an applescript application after running a shell script

I was wondering if it is possible for an applescript application to run a shell script, then quit before the execution of the shell script is completed. This would be useful when running a server for a given amount of time. Instead of needing the app

## Solving an equation with scipy fsolve

I'm trying to solve the equation f(x) = x-sin(x) -n*t -m0 In this equation, n and m0 are attributes, defined in my class. Further, t is a constant integer in the equation, but it has to change each time. I've solved the equation so i get a 'new equat

## Constraint optimization for the nonlinear multivariate function in Java

I am looking for an open source implementation of a method doing constrained optimization for nonlinear multivariable function in Java.There are several open source java implementations that can do this, such as: OptaPlanner (apache license, 100% jav

## How to solve the system of simultaneous nonlinear equations (Matlab, Python or Fortran)

I am looking at a system of nonlinear simultaneous equations. The two variables are u>0 and b>0. How can I solve this problem in Matlab, in Python, or in Fortran? Thanks. You can easily eliminate one of those equations by solving #1 for b. Then use

## Resolution of multiple phase angles for several equations

I have several equations and each have their own individual frequencies and amplitudes. I would like to sum the equations together and adjust the individual phases, phase1,phase2, and phase3 to keep the total amplitude value of eq_total under a speci

## Limitations of the Levenberg-Marquardt algorithm

I am using Levenberg-Marquardt algorithm to minimize a non-linear function of 6 parameters. I have got about 50 data points for each minimization, but I do not get sufficiently accurate results. Does the fact, that my parameters differ from each othe