Displaying 20 results from an estimated 2871 matches for "sqrt".
Did you mean:
sort
2007 Mar 10
3
long character string problem
...ow can I remove these double-quotes? I
tried as.name() but it did not work (because of size?). These are creating
trouble with subsequent programs, which I tested with strings that for some
reason do not have these double quotes (see very bottom).
> cum1
[1]
"A11*(X11*x1+X21*x2)+1*sqrt(B11*(X11*x1+X21*x2)^2+C11)A12*(X12*x1+X22*x2)+1*sqrt(B12*(X12*x1+X22*x2)^2+C12)A13*(X13*x1+X23*x2)+-1*sqrt(B13*(X13*x1+X23*x2)^2+C13)A14*(X14*x1+X24*x2)+-1*sqrt(B14*(X14*x1+X24*x2)^2+C14)A15*(X15*x1+X25*x2)+1*sqrt(B15*(X15*x1+X25*x2)^2+C15)A16*(X16*x1+X26*x2)+1*sqrt(B16*(X16*x1+X26*x2)^2+C16)A17*(X...
2013 Nov 12
3
[LLVMdev] [RFC] How to fix sqrt vs llvm.sqrt optimization asymmetry
----- Original Message -----
>
> On Nov 11, 2013, at 9:30 PM, Hal Finkel <hfinkel at anl.gov> wrote:
>
> > ----- Original Message -----
> >> Hi Hal, all.
> >>
> >> I'm not sure why llvm.sqrt is 'special'. Maybe because there is a
> >> SSE
> >> packed sqrt instruction (SQRTPS) but not e.g. a packed sin
> >> instruction
> >> AFAIK.
> >
> > This seems relevant:
> > http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-August/010248...
2013 Oct 22
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
For example, I execute the following command sequences:
H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s
#.globl _sqrt
.global sqrt
#.type sqrt, at function
#_sqrt:
sqrt: fldl 4(%esp)
fsqrt
fstsw %ax
sub $12,%esp
fld %st(0)
fstpt (%esp)
mov (%esp),%ecx
and $0x7ff,%ecx
cmp $0x400,%ecx
jnz 1f
and $0x200,%eax
sub...
2013 Nov 12
3
[LLVMdev] [RFC] How to fix sqrt vs llvm.sqrt optimization asymmetry
----- Original Message -----
> Hi Hal, all.
>
> I'm not sure why llvm.sqrt is 'special'. Maybe because there is a
> SSE
> packed sqrt instruction (SQRTPS) but not e.g. a packed sin
> instruction
> AFAIK.
This seems relevant: http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-August/010248.html
Chris, et al., does the decision on how to treat sqrt preda...
2013 Nov 10
2
[LLVMdev] [RFC] How to fix sqrt vs llvm.sqrt optimization asymmetry
Hello everyone,
The particular motivation for this e-mail is my desire for feedback on how to fix PR17758; but there is a core design issue here, so I'd like a wide audience.
The underlying issue is that, because the semantics of llvm.sqrt are purposefully defined to be different from libm sqrt (unlike all of the other llvm.<libm function> intrinsics) (*), and because autovectorization relies on the vector forms of these intrinsics when vectorizing function calls to libm math functions, we cannot vectorize a libm sqrt() call in...
2013 Nov 11
0
[LLVMdev] [RFC] How to fix sqrt vs llvm.sqrt optimization asymmetry
Hi Hal, all.
I'm not sure why llvm.sqrt is 'special'. Maybe because there is a SSE
packed sqrt instruction (SQRTPS) but not e.g. a packed sin instruction
AFAIK.
As mentioned in a recent mail to this list, I would like llvm.sqrt to be
defined as NaN for argument x < 0. I believe this would bring it more
into line with th...
2013 Oct 22
0
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...clang will run the C preprocessor for you if you use the .S file suffix
(case matters).
On Tue, Oct 22, 2013 at 7:08 AM, 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com>wrote:
> For example, I execute the following command sequences:
>
> H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s
> #.globl _sqrt
> .global sqrt
> #.type sqrt, at function
> #_sqrt:
> sqrt: fldl 4(%esp)
> fsqrt
> fstsw %ax
> sub $12,%esp
> fld %st(0)
> fstpt (%esp)
> mov (%esp),%ecx
> and $0x7ff,%ecx
> cm...
2010 Jan 07
2
[LLVMdev] sqrt
On Jan 7, 2010, at 11:48 AM, Chris Lattner <clattner at apple.com> wrote:
> There is a fundamental difference between sqrt() and llvm.sqrt: the
> former is defined on negative values and sets errno (on linux). The
> later is undefined. Both work well for their stated purpose,
> llvm.sqrt should not be slower than sqrt even on linux. Both
> llvm.sqrt and sqrt could be much better on linux, but noone seems...
2008 Jun 03
3
How to solve a non-linear system of equations using R
...preciated.
Thanks in advance,
Jorge
# ------------------------------
# Constants
# ------------------------------
l=1
m=0.4795
s=0.4795
# ------------------------------
# Functions to estimate f_i-k_i
# ------------------------------
f1=function(d){
d1=d[1]
d2=d[2]
d3=d[3]
d4=d[4]
res=2*d1+2*sqrt(2)*d1*d2+2*sqrt(3)*d2*d3+4*d3*d4-l*m*(1+d1^2+d2^2+d3^2+d4^2)
res
}
f2=function(d){
d1=d[1]
d2=d[2]
d3=d[3]
d4=d[4]
res=2*sqrt(2)*d2+2*d1^2+2*sqrt(6)*d1*d3+4*d2^2+4*sqrt(3)*d2*d4+6*d3^2+8*d4^2-l*(m^2+m^3*s^(-1))*(1+d1^2+d2^2+d3^2+d4^2)
res
}
f3=function(d){
d1=d[1]
d2=d[2]
d3=d[3]
d4=d[4]
res=6*d1...
2013 Nov 12
0
[LLVMdev] [RFC] How to fix sqrt vs llvm.sqrt optimization asymmetry
On Nov 11, 2013, at 9:30 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> ----- Original Message -----
>> Hi Hal, all.
>>
>> I'm not sure why llvm.sqrt is 'special'. Maybe because there is a
>> SSE
>> packed sqrt instruction (SQRTPS) but not e.g. a packed sin
>> instruction
>> AFAIK.
>
> This seems relevant: http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-August/010248.html
>
> Chris, et al., does the...
2013 Nov 12
0
[LLVMdev] [RFC] How to fix sqrt vs llvm.sqrt optimization asymmetry
On Nov 11, 2013, at 10:44 PM, Hal Finkel <hfinkel at anl.gov> wrote:
>> "Unlike sqrt in libm, however, llvm.sqrt has undefined behavior for
>> ..."
>>
>> to "... produces an undefined value", with a link back to
>> ##undefined-values.
>
> I'm not sure that helps, because it will prevents sqrt + -fno-math-errno (a readnone sqrt) -&g...
2010 Jan 07
3
[LLVMdev] sqrt
What is the state of sqrt in LLVM?
It was an intrinsic but there are no OCaml bindings for it and, last I looked,
it generated inefficient code on Linux due to this bug:
http://www.llvm.org/PR3219
Is the intrinsic deprecated? Am I losing a lot of performance by calling sqrt
from libm instead of using the intrinsic?...
2010 Jan 07
0
[LLVMdev] sqrt
On Jan 7, 2010, at 7:06 AM, Jon Harrop wrote:
>
> What is the state of sqrt in LLVM?
>
> It was an intrinsic but there are no OCaml bindings for it and, last
> I looked,
> it generated inefficient code on Linux due to this bug:
>
> http://www.llvm.org/PR3219
>
> Is the intrinsic deprecated? Am I losing a lot of performance by
> calling sqrt...
2010 Jan 08
0
[LLVMdev] sqrt
On Jan 7, 2010, at 3:53 PM, Robert A. Zeh wrote:
>
> On Jan 7, 2010, at 11:48 AM, Chris Lattner <clattner at apple.com> wrote:
>
>> There is a fundamental difference between sqrt() and llvm.sqrt: the
>> former is defined on negative values and sets errno (on linux). The
>> later is undefined. Both work well for their stated purpose,
>> llvm.sqrt should not be slower than sqrt even on linux. Both
>> llvm.sqrt and sqrt could be much better on linux,...
2008 Apr 05
2
How to improve the "OPTIM" results
...ial value(In fact,
true parameter value)
n = length(x)
fr2 = function(theta)
{
a1 = theta[1]; a2 = theta[2]
mu1 = theta[3]; mu2 = theta[4]; mu3 = theta[5]
g1 = theta[6]; g2 = theta[7]; g3 = theta[8]
w1=exp(a1)/(1+exp(a1)+exp(a2))
w2=exp(a2)/(1+exp(a1)+exp(a2))
w3=1-w1-w2
obj =((w1^2)/(2*sqrt(exp(g1)*pi))
+ (w2^2)/(2*sqrt(exp(g2)*pi))
+ (w3^2)/(2*sqrt(exp(g2)*pi))
+ 2*w1*w2*dnorm((mu1-mu2)/sqrt(exp(g1)+exp(g2)))/sqrt(exp(g1)+exp(g2))
+
2*w1*w3*dnorm((mu1-mu3)/sqrt(exp(g1)+exp(g3)))/sqrt(exp(g1)+exp(g3))
+
2*w2*w3*dnorm((mu2-mu3)/sqrt(exp(g2)+...
2008 Apr 05
2
How to improve the "OPTIM" results
...ial value(In fact,
true parameter value)
n = length(x)
fr2 = function(theta)
{
a1 = theta[1]; a2 = theta[2]
mu1 = theta[3]; mu2 = theta[4]; mu3 = theta[5]
g1 = theta[6]; g2 = theta[7]; g3 = theta[8]
w1=exp(a1)/(1+exp(a1)+exp(a2))
w2=exp(a2)/(1+exp(a1)+exp(a2))
w3=1-w1-w2
obj =((w1^2)/(2*sqrt(exp(g1)*pi))
+ (w2^2)/(2*sqrt(exp(g2)*pi))
+ (w3^2)/(2*sqrt(exp(g2)*pi))
+ 2*w1*w2*dnorm((mu1-mu2)/sqrt(exp(g1)+exp(g2)))/sqrt(exp(g1)+exp(g2))
+
2*w1*w3*dnorm((mu1-mu3)/sqrt(exp(g1)+exp(g3)))/sqrt(exp(g1)+exp(g3))
+
2*w2*w3*dnorm((mu2-mu3)/sqrt(exp(g2)+...
2012 Oct 05
2
problem with convergence in mle2/optim function
...lgamma(sum(x) + 1) + sum(x * log(prob) - lgamma(x + 1))
if (log) r else exp(r)
}
# vector of time points
tv <- 1:20
# Negative log likelihood function
NLL.func <- function(p1, p2, mu1, mu2, y){
t <- y$tv
n1 <- y$n1
n2 <- y$n2
n3 <- y$n3
P1 <- (p1*((-1 + exp(sqrt((mu1 + mu2 + p1 + p2)^2 -
4*(mu2*p1 + mu1*(mu2 + p2)))*t))*((-mu2)*(mu2 - p1 + p2) +
mu1*(mu2 + 2*p2)) - mu2*sqrt((mu1 + mu2 + p1 + p2)^2 -
4*(mu2*p1 + mu1*(mu2 + p2))) -
exp(sqrt((mu1 + mu2 + p1 + p2)^2 - 4*(mu2*p1 + mu1*(mu2 + p2)))*t)*
mu2*sqrt((mu1 + mu2 + p1 + p2)^2 -...
2013 Oct 23
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...essor for you if you use the .S file suffix
> (case matters).
>
> On Tue, Oct 22, 2013 at 7:08 AM, 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com>wrote:
>
>> For example, I execute the following command sequences:
>>
>> H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s
>> #.globl _sqrt
>> .global sqrt
>> #.type sqrt, at function
>> #_sqrt:
>> sqrt: fldl 4(%esp)
>> fsqrt
>> fstsw %ax
>> sub $12,%esp
>> fld %st(0)
>> fstpt (%esp)
>> mov (%esp),%ecx...
2007 Sep 10
2
Are the error messages of ConstrOptim() consisten with each other?
.../lbar*exp(lambda*lambda))*pnorm(-lambda/2.0-log(((ss+(tot/sh*1000.0)*lbar)/(tot/sh*1000.0)/lbar*exp(lambda*lambda)))/lambda))+(exp(rint*(lambda*lambda/(sigmae*ss/(ss+lbar*(tot/sh*1000.0)))/(sigmae*ss/(ss+lbar*(tot/sh*1000.0)))))*((((ss+(tot/sh*1000.0)*lbar)/(tot/sh*1000.0)/lbar*exp(lambda*lambda))^(sqrt(0.25+2.0*rint/(sigmae*ss/(ss+lbar*(tot/sh*1000.0)))/(sigmae*ss/(ss+lbar*(tot/sh*1000.0))))+0.5)*pnorm(-log(((ss+(tot/sh*1000.0)*lbar)/(tot/sh*1000.0)/lbar*exp(lambda*lambda)))/((sigmae*ss/(ss+lbar*(tot/sh*1000.0)))*sqrt(mat+(lambda*lambda/(sigmae*ss/(ss+lbar*(tot/sh*1000.0)))/(sigmae*ss/(ss+lbar*(t...
2006 Jan 26
1
Using special characters
...ause I'm using a linux platform...
The script is the following:
library(grDevices) jpeg(file="Fronteira/FronteiraNova.jpeg", bg="white", quality=100,width = 600, height = 480) grafico.fe<-function(varFA,retFA,varC,retC,covRF,retRF,varD,retD) { minx<-min(100*sqrt(varFA),100*varC,100*sqrt(covRF[1,1]),100*sqrt(covRF[2,2]),100*sqrt(covRF[3,3]),100*sqrt(covRF[4,4]),100*varD) maxx<-max(100*sqrt(varFA),100*varC,100*sqrt(covRF[1,1]),100*sqrt(covRF[2,2]),100*sqrt(covRF[3,3]),100*sqrt(covRF[4,4]),100*varD) miny<-min(100*retFA,retC,retRF,retD) maxy<...