Displaying 20 results from an estimated 1000 matches similar to: "Solving Simultaneous nonlinear equations"
2012 Dec 20
1
Problem with simulation
Dear:
I am having problem with simulation. Sometimes for 100 iteration, my
program works but sometimes give error message regarding some "built-in
function" which I never used
in my code. I have no idea about the problem. Any suggestion, comments or
idea regarding this would be highly appreciable. Thanks.
I have used ---- "maxLik()" and "BBsolve()" in my code. Error
2010 Nov 21
1
solve nonlinear equation using BBsolve
Hi r-users,
I would like to solve system of nonlinear equation using BBsolve function and
below is my code. I have 4 parameters and I have 4 eqns.
mgf_gammasum <- function(p)
{
t <- rep(NA, length(p))
mn <- 142.36
vr <- 9335.69
sk <- 0.8139635
kur <- 3.252591
rh <- 0.896
# cumulants
k1 <- p[1]*(p[2]+p[3])
k2 <- p[1]*(2*p[2]*p[3]*p[4] +p[2]^2+p[3]^2)
k3 <-
2009 Oct 11
1
Solving a nonlinear System of equations
Hello there,
I wish to solve the following nonlinear System of equations:
+ u1 - Vmax11*S1/(S1 + Km11 *(1 + S2/Km21)) - Vmax12*S1/( S1 + Km12 *(1+S2/Km22)) == 0
+ u2 - Vmax22*S2/(S2 + Km22 *(1 + S1/Km12)) - Vmax21*S2/( S2 + Km21 *(1+S1/Km11)) == 0
+ Vmax11*S1/(S1 + Km11 *(1 + S2/Km21)) + Vmax12*S1/( S1 + Km12 *(1+S2/Km22)) - d1*P1 == 0
+ Vmax22*S2/(S2 + Km22 *(1 + S1/Km12)) + Vmax21*S2/( S2 +
2011 Nov 03
1
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
Hi Mian,
Looking at the runlog, everything seems fine until LLVM attempts to use lseek() on a file.
You see the PANIC because Horizon hasn't implemented lseek yet.
Obviously the version of GlibC I was using does not use lseek in that circumstance, but yours does. You just need to implement lseek :)
Cheers,
James
-----Original Message-----
From: Mian M. Hamayun
2011 Nov 08
0
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
Hi James,
I have two questions for you.
Firstly, what is the role of 'module' in init.cc? I can see that its
being treated like it is a 'bytecode' file, as we open it and then pass
it to the ByteCoder and eventually construct llvm module from it.
Like In file init.cc, line:121
FILE *stream = fopen("/module", "rb");
...
fread(c, 1, sz,
2011 Sep 02
3
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
Thanks Eric, Jim and Geovani for your responses.
Yes, we can combine two or more bitcode modules using llvm-ld and in
this way functions can be inlined and optimized during this process.
But I am also looking into the possibility of doing the same using LLVM
Pass Manager (Without using llvm-ld). This looks difficult due to the
fact that the function definitions ought to be in the same module
2009 Aug 06
1
solving system of equations involving non-linearities
Hi,
I would appreciate if someone could help me on track with this problem.
I want to compute some parameters from a system of equations given a number of sample observations. The system looks like this:
sum_i( A+b_i>0 & A+b_i>C+d_i) = x
sum_i( C+d_i>0 & C+d_i>A+b_i) = y
sum_i( exp(E+f_i) * ( A+b_i>0 & A+b_i>C+d_i) = z
A, C, E are free variables while the other
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
Hi,
I tried this as well, using the following line to add function
declaration to the caller module.
Function::Create(FT, Function::ExternalLinkage, "gcd", mod);
Where "FT" is the same as before. And the output produced by the
PrintModulePass becomes:
; ModuleID = 'GCDMain'
declare i32 @gcd(i32, i32)
define i32 @main() {
EntryBlock:
%tmp = call i32 @gcd(i32
2011 Aug 31
0
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
On Wed, Aug 31, 2011 at 10:00 AM, Mian M. Hamayun
<mian-muhammad.hamayun at imag.fr> wrote:
> Hello Everyone,
>
> I am trying to create two modules in LLVM, where first module contains the
> definition of a function, gcd in this example and another module contains a
> call to this function.
You can't reference a global in one module in another module. Either
stick with
2011 Sep 02
0
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
On Fri, Sep 2, 2011 at 4:23 AM, Mian M. Hamayun
<mian-muhammad.hamayun at imag.fr> wrote:
> But I am also looking into the possibility of doing the same using LLVM Pass
> Manager (Without using llvm-ld). This looks difficult due to the fact that
> the function definitions ought to be in the same module as the caller, in
> order to be inlined and then optimized onwards, I guess
2011 Aug 31
0
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
On Wed, Aug 31, 2011 at 10:54 AM, Mian M. Hamayun
<mian-muhammad.hamayun at imag.fr> wrote:
> Hi,
>
> I tried this as well, using the following line to add function declaration
> to the caller module.
>
> Function::Create(FT, Function::ExternalLinkage, "gcd", mod);
>
> Where "FT" is the same as before. And the output produced by the
>
2011 Sep 01
4
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
Hi Everyone,
Hopefully this question is not too absurd.
Actually I created an example in LLVM, where I generate two modules, one
containing the function definition and the other module calling this
function.
(Question related to this was posted on this mailing list recently)
Now I want to know, whether it is possible to "inline" the definition of
this function in the caller module,
2011 Nov 08
2
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
Hi,
First question: "/module" is mapped to a special file that reads a kernel module passed in by the bootloader. Much like GRUB, kiwi's bootloader loads a kernel and can load one or more extra files into memory. These are passed to the kernel.
The horizon kernel expects one file, which it makes accessible at "/module". This should be set up to be whatever you set
2011 Sep 01
0
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
To do it manually, llvm-ld your modules to get a single module with both, then run opt on the result to optimize it. From source code, you can just use -O4 to the compiler on a system with a suitable linker (standard ld on OSX; binutils+gold plugin on Linux, for example).
-Jim
On Sep 1, 2011, at 9:27 AM, Mian M. Hamayun wrote:
> Hi Everyone,
>
> Hopefully this question is not too
2011 Aug 15
0
Stopping criterion in option "control" of BBsolve( )
Dear Dr. Gilbert, Dr. Varadhan and all R-help list members,
I'm using the function BBsolve( ) and I have some questions on the stopping
criterion "maxit" and "noimp" specified in the option "control". Here
are two such examples I'm having problem with. In these two examples, the
function BBsolve( ) always stops at iteration 100, overlooking the values
2005 Feb 25
3
main effect & interaction in 2-way ANOVA
Hi,
I am just a little confused of mian effect in the
analysis of variance (ANOVA) when you include or do
not include an interaction term. Let's assume a simple
case of 2-way ANOVA with 2 factors A and B, each with
2 levels. If it shows that main effect for A is
significant when the interaction between A and B is
NOT included, and the main effect for A is NOT
significant when the interaction
2010 Sep 26
2
Finding Zeros of a Function
Dear All,
I need to find the (possible multiple) zeros of a function f within an
interval. I gave uniroot a try, but it just returns one zero and I need
to provide it with an interval [a,b] such that f(a)f(b)<0.
Is there any function to find the multiple zeros of f in (a,b) without
constraints on the sign of f(a) and f(b)?
Many thanks
Lorenzo
2004 Sep 17
2
help with numerical solution for two simultaneous nonlinear equations in 2 variables
Hi,
I am relatively new to R and am trying to solve two simultaneous
nonlinear equations in two variables numerically, and was wondering if
anyone knew if any of the packages could do that. An alternative is
writing my own code using Newton-Raphson; I did that but was not able to
get good convergence. Any ideas please?
Thanks
Yogesh
[[alternative HTML version deleted]]
2011 Oct 26
3
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
Dear All,
I have tested a few examples of LLVM-JIT Framework on Linux x86 Machine.
So generating functions on the fly and then executing them is OK on
linux i.e. i686-pc-linux-gnu
My question is:
Can we use the LLVM-JIT on a baremetal x86 machine ? Actually my target
is a virtual machine, and I need some dynamic code generation support. I
intend to use LLVM-JIT (if possible) for this
2008 Jun 19
4
Why can't I access Webrick web server from other computers?
Hi everyone,
I have a rails project running on Ubuntu. When I ran it on localhost
http://localhost:3000, it worked perfectly. But when I tried to access
from other computers in the same network by either http://hostname:3000
or http://[ipaddress]:3000, I got a "Internet Explorer cannot display
the webpage" error.
I double checked my ubuntu with iptables, no rules are defined:
iptables