Displaying 20 results from an estimated 3874 matches for "dividing".
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
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
2010 Jul 06
1
plotmath vector problem; full program enclosed
Here's another example of my plotmath whipping boy, the Normal distribution.
A colleague asks for a Normal plotted above a series of axes that
represent various other distributions (T, etc).
I want to use vectors of equations in plotmath to do this, but have
run into trouble. Now I've isolated the problem down to a relatively
small piece of working example code (below). If you would
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
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
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:
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.rubyonrails.org/mailman/listinfo/rails
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:
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, 2007 12:30 AM
To: speex-dev@xiph.org
Subject: Speex-dev
2013 Aug 24
1
Divide the data into sub data on a particular condition
Hi,
Use ?split()
#dat1 is the dataset:
lst1<- split(dat1,dat1$BaseProd)
lst1
#$`2231`
?# BaseProd? CF OSA
#1???? 2231 0.5 0.7
#2???? 2231 0.8 0.6
#3???? 2231 0.4 0.8
#
#$`2232`
?# BaseProd CF OSA
#4???? 2232? 1?? 2
#5???? 2232? 3?? 1
#
#$`2233`
?# BaseProd? CF OSA
#6???? 2233 0.9 0.5
#7???? 2233 0.7 0.5
#8???? 2233 4.0 5.0
#9???? 2233 5.0 7.0
lst1[[1]]
#? BaseProd? CF OSA
#1???? 2231 0.5 0.7
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;
}...
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:
"/
2007 Jan 03
2
understanding integer divide (%/%)
...rev 39566
language R
version.string R version 2.4.0 (2006-10-03)
> 1 %/% 0.1
[1] 9
> 10 %/% 1
[1] 10
>
This effect led me into an trap when I tried to
classify a set of proportions based on the first
decimal place by integer dividing by 0.1. Can someone
explain why this behavior occurs and give me an
insight into how to predict it?
Thanks,
-- Jeff
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
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 exa...
2011 Nov 13
2
kernel messages: alignment check: 0000 [#1] SMP
Hi,
This is just to report about the "alignment check: 0000 [#1] SMP"
kernel messages in one of my build system (domU) running Scientific
Linux 6.1.
I am compiling/rpm package for sbcl (http://sbcl.sourceforge.net/) in
my build system (domU) and hit the following kernel messages although
the domU in question still running and compilation still in progress.
I have done some searching
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
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), and the factor by
which
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
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.
Appreciate your help
-Abhi
head(counts)
WT_CON WT_RB MU_CON