Displaying 20 results from an estimated 3874 matches for "divide".
Did you mean:
divided
2010 Apr 02
7
Liebert GXT2 NUT driver
Hi guys,
I found the troblue and fix it!
I attached the patch.
The trouble was in the command reply buffer use.
You compute the value that value = reply[6]*256+reply[5] <- it's wrong
The right solution: value = reply[5] * 256 + reply[6];
And other bug,
battery.runtime compute, you divide this value 60 <- it's wrong
right value: divide 1.0
I continue the work on this driver,and I will write if I make a something
new.
I'm waiting for your reactions.
--
Best Regards,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list...
2008 Sep 17
1
Status of kernel divider option in 2.6.9-78.0.1
Under 4.6, we recompiled the kernel with HZ=100 for improved
time-keeping in VMware guests. I've read about the backporting of the
divider patch into RHEL/CentOS 4.7, but it sounds like it also comes
with some bugs. I have been unable to determine the current status of
the divider option in the latest 4.7 kernel update. I have
experimented with "divider=10" and it works with no major problems,
except that the guest clock dr...
2010 Jul 06
1
plotmath vector problem; full program enclosed
...in=myTitle1, axes=FALSE)
axis(2, pos= mu - 3.6*sigma)
axis(1, pos=0)
lines(c(myx[1],myx[length(myx)]),c(0,0)) ### closes off axes
addInteriorLine <- function(x, m, sd){
for (i in 1:(length(x))){
lines( c(x[i],x[i]), c(0, dnorm(x[i],m=m,sd=sd)), lty= 14, lwd=.2)
}
}
dividers <- c(qnorm(0.025), -1, 0, 1, qnorm(0.975))
addInteriorLine(mu+sigma*dividers, mu,sigma)
# bquote creates an expression that text plotters can use
t1 <- bquote( mu== .(mu))
mtext(bquote( mu == .(mu)), 1, at=mu, line=-1)
addInteriorLabel <- function(pos1, pos2, m, s){
are...
2012 Mar 12
2
mapply & assign to generate functions
Hi,
I have a problem that I'm finding a bit tricky. I'm trying to use
mapply and assign to generate curried functions. For example, if I
have the function divide
divide <- function(x, y) {
x / y
}
And I want the end result to be functionally equivalent to:
half <- function(x) divide(x, 2)
third <- function(x) divide(x, 3)
quarter <- function(x) divide(x, 4)
But I want to do it using mapply and assign:
mapply(assign,
c("half"...
2005 May 20
2
Lattice: it seems, a bug in draw.key function
Dear r-help,
Now I am drawing graphs with xyplot function.
In order to place a legend under the plots I use the key argument in
the xyplot function.
One of the 'key' components is 'divide', which defines a number of
points on the each line of the legend. The default is 3 points.
I would like a single point, so I set divide = 1.
Call to xyplot didn't produce any points at all.
The body of draw.key function contains the following
pointsGrob(x=(1:key$divide-1)/(key...
2007 Oct 28
1
2 commits - libswfdec/swfdec_as_interpret.c test/trace
libswfdec/swfdec_as_interpret.c | 1 +
test/trace/Makefile.am | 3 +++
test/trace/crash-0.5.3-divide-by-zero.as | 5 +++++
test/trace/crash-0.5.3-divide-by-zero.swf |binary
test/trace/crash-0.5.3-divide-by-zero.swf.trace | 1 +
5 files changed, 10 insertions(+)
New commits:
commit c6d96d7d47704ca3d62c08d35874c64f7878bdf2
Author: Benjamin Otte <otte at gnome.org>
Date:...
2005 Dec 15
8
slightly OT - Ruby division
Hey all,
In my code, it seems that when I divide two integers, the result is an
integer. Is there any way to make it such that when I divide two integers,
the result is a double?
Any help appreciated,
Jin
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rub...
2010 Nov 28
4
how to divide each column in a matrix by its colSums?
Hi,
I have a matrix, say
m=matrix(c(
983,679,134,
383,416,84,
2892,2625,570
),nrow=3
)
i can find its row/col sum by
rowSums(m)
colSums(m)
How do I divide each row/column by its rowSum/colSums and still return in
the matrix form?
(i.e. the new rowSums/colSums =1)
Thanks.
Casper
--
View this message in context: http://r.789695.n4.nabble.com/how-to-divide-each-column-in-a-matrix-by-its-colSums-tp3062739p3062739.html
Sent from the R help mailing lis...
2007 Jun 24
1
Divided by Zero Error Speex-dev Digest, Vol 34, Issue 12
Hi,
I am getting the same problem of divided by zero while decoding in the
function multicomb(). I am using fixed point speex code. Can anybody
please tell me the solution for it.
-----Original Message-----
From: speex-dev-bounces@xiph.org [mailto:speex-dev-bounces@xiph.org] On
Behalf Of speex-dev-request@xiph.org
Sent: Tuesday, March 13, 2...
2013 Aug 24
1
Divide the data into sub data on a particular condition
...llowing form
BaseProd ?CF ?OSA
2231 ? ? ? ? ? ?0.5 ? 0.7
2231 ? ? ? ? ? ?0.8 ? 0.6
2231 ? ? ? ? ? ?0.4 ? 0.8
2232 ? ? ? ? ? ?1 ? ? ? ?2
2232 ? ? ? ? ? ?3 ? ? ? ? 1
2233 ? ? ? ? ? ?0.9 ? ? 0.5
2233 ? ? ? ? ? ?0.7 ? ?0.5
2233 ? ? ? ? ? 4 ? ? ? ? ? 5
2233 ? ? ? ? ? 5 ? ? ? ? ? 7
I want to divide the data so that the data get divided on the basis of base product.
like:
data1
BaseProd ?CF ?OSA
2231 ? ? ? ? ? ?0.5 ? 0.7
2231 ? ? ? ? ? ?0.8 ? 0.6
2231 ? ? ? ? ? ?0.4 ? 0.8
data2
BaseProd ?CF ?OSA
2232 ? ? ? ? ? ?1 ? ? ? ?2
2232 ? ? ? ? ? ?3 ? ? ? ? 1
data3
BaseProd ?CF ?OSA
2233...
2012 Jun 27
2
[LLVMdev] 8-bit DIV IR irregularities
Hi,
I noticed that when dividing with signed 8-bit values the IR uses a 32-bit signed divide, however, when unsigned 8-bit values are used the IR uses an 8-bit unsigned divide. Why not use a 8-bit signed divide when using 8-bit signed values?
Here is the C code and IR:
char idiv8(char a, char b)
{
char c = a / b;
return c;
}
define signext i8 @idiv8(i8 signext %a, i8 signext %b) nou...
2008 May 14
2
Dividing Two Dataframes
Hi,
I have two dataframes one with 144 rows and 160 columns (SDF1) and one with
12 rows and 160 columns (SDF2).
Now I'm trying to divide rows 1:12 with SDF2, rows 13:24 with SDF2, rows
25:36 with SDF 2, .
In S-Plus the following code works fine:
DFS = SDF1[1:144,1:60] / as.vector(SDF2[1:12,1:160])
but in R when I try to implement the formula I get the following error:
"/ only defined for equally-sized data frames&quo...
2007 Jan 03
2
understanding integer divide (%/%)
I am confused about why the following occurs:
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 4.0
2005 Jul 15
3
Dividing a vector into ntiles
R 2.1.1
Win 2k
Would someone suggest a method (or methods) that can be used to
determine ntile cutpoints of a vector, i.e. to determine values that can
be used to divide a vector into thirds such as 0-33 centile, 34-66
centile, 67-100 centile. If for example I had a vector:
1,2,3,4,5,6,7,8,9
and wanted to divide the vector into thirds
I would have cut-points of 3, and 6.
Thanks,
John
John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medica...
2012 Jul 31
3
Help with NaN when 0 divided by 0
Hi All,
I have some data where I am doing fairly simple calculations, nothing more
than adding, subtracting, multiplying and dividing.
I’m running into a problem when I divide one variable by another and when
they’re both 0 I get NaN. I realize that if you divide a non-zero by 0 then
you get Inf, which is, of course, correct. But in my case I never get Inf,
just NaN because of the structure of my dataset.
Here’s a dumb example:
var1 <- c(0, 500, 5379, 0, 1500,...
2011 Nov 13
2
kernel messages: alignment check: 0000 [#1] SMP
...e.com/Alignment-check-on-domU-2-6-32-td2549903.html
http://xen.1045712.n5.nabble.com/Kernel-panic-with-2-6-32-30-under-network-activity-td3423149.html
Kernel messages:
derefnull[15862]: segfault at 0 ip 000000000804c2eb sp
00000000ffb4dfac error 4 in derefnull[8048000+57000]
divbyzero[15899] trap divide error ip:804d0be sp:ff849e9c error:0 in
divbyzero[8048000+56000]
derefnull[7328]: segfault at 0 ip 0000000000407701 sp 00007fff943b1c60
error 4 in derefnull[400000+77000]
divbyzero[7345] trap divide error ip:408d05 sp:7fff35784750 error:0 in
divbyzero[400000+76000]
derefnull[32738]: segfault at 0 i...
2008 Oct 30
2
[LLVMdev] Target description flags for instructions which may trap
What are the correct target description side effect flags for
instructions which may trap (e.g. divide / remainder)? The divide
instruction in my backend currently has no flags set. I've enabled the
MachineLICM pass and it's causing a miscompilation by hoisting a divide
by zero instruction out of the loop. Clearly this pass needs to be made
aware that this is not safe. The current test i...
2008 Jul 09
7
recursively divide a value to get a sequence
Hi,
if given the value of, say, 15000, I would like to be able to divide
that value recursively by, say, 5, and to get a vector of a determined
length, say 9, the last value being (set to) zero- i.e. like this:
15000 3000 600 120 24 4.8 0.96 0.192 0
These are in fact concentration values from an experiment. For my
script, I get only the starting value (here 15000), an...
2008 May 09
3
[LLVMdev] How to handle divide-by-zero exception?
Currently it states in the language manual that the results of division
by zero are undefined. However, I'm curious as to how you would normally
handle either divide by zero or other "hardware" exceptions (null
pointer dereference and so on) and turn them into LLVM exceptions.
It seems to me that you would need some way to set up the unwind labels
beforehand, just like you do for the invoke instruction. For the
specific case of divide by zero, I c...
2012 Feb 06
2
dividing values of each column in a dataframe
Hey Guys
I want to divide(numerically) all the columns of a data frame by
different numbers. Here is what I am doing but getting a weird error.
The values in each column are not getting divided by the corresponding
value in the denominator vector instead by the alternative values. I
am sure I am messing up something.
Appr...