similar to: Fixed-point cos/acos

Displaying 20 results from an estimated 130 matches similar to: "Fixed-point cos/acos"

2005 Mar 29
1
strange result of acos
Hi all, I have to calculate an expression using acos -function. A strange result of acos appears *1. case with error* ss <- sin(10.74*pi/180)**2 +(cos(10.74*pi/180)*cos(10.74*pi/180)*cos(0*pi/180)) ss acos(ss) [1] NaN Warning message: NaNs produced in: acos(ss) *2. case without error* ss <- sin(10.7*pi/180)**2 +(cos(10.7*pi/180)*cos(10.7*pi/180)*cos(0*pi/180)) ss acos(ss)
2006 Sep 18
8
acos(0.5) == pi/3 FALSE
Hello, I don't know if the result of acos(0.5) == pi/3 is a bug or not. It looks strange to me. Inaki Murillo
2011 Jul 05
1
if else loop
Dear R help I was hoping you might be able to show me how to write a loop function take would ccomplish this task. library(prob) { a <- sample ( 1:20, 100, replace=T) b<-sample(5:24,100,replace=T) } dd <- data.frame(a,b) dd # code piece I am looking for if(subset(dd,c(1,23,ordered=F))is found))( print subset) else( continue evaluating subsets) subset(dd,isin(dd,c(1,23), ordered =
2007 May 18
0
VMWare Client COS 5 Disk Type
When creating a VMWare client that is Cent OS 5, the default SCSI disk is not recognized by the installer. Any suggestions for getting a disk on a COS5 client? Possible alternatives: 1) IDE disk, seems to work fine, 2) ??. Follow up to choice 1, is there a performance hit? While I have you, what is the best choice for "Guest Operating System".? Choices include RHEL, RHEL 4, and
2007 Jul 22
1
Asterisk and COS bits
Is there any way to change COS bits for packets? There is a tos option on sip.conf, does asterisk change COS bits considering tos value? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070721/8ac39dff/attachment.htm
2007 Jul 23
0
Fwd: Asterisk and COS bits
You have it right, for 1.2, use 'tos=', for 1.4 use 'tos_sip/tos_audio/tos_video'. ________________________________ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Al lists Sent: Monday, July 23, 2007 10:21 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Fwd: Asterisk and COS
2020 Jan 31
0
how to make asterisk set cos values
On Fri, Jan 31, 2020 at 7:34 AM hw <hw at gc-24.de> wrote: > Hi, > > examining the network traffic with wireshark shows that asterisk does not > set > any QoS values at all. > > What do I need to do to make asterisk set QoS values (on Centos 7)? > > The wiki says to use vconfig to set QoS values[1]. What does the > skb-priority > need to be set to? How do
2017 Sep 14
2
Running COS 7.1708 on VirtualBox 5.1.28
Anyone else having issues getting the VB drivers to load on 1708? I keep gettting an "Error: unable to find the sources of your current Linux kernel..." message. I do have kernel-devel installed and I had no issues running 1611 on the same host. Thanks
2017 Sep 14
0
Running COS 7.1708 on VirtualBox 5.1.28
Le 14/09/2017 ? 21:32, Ken Gramm a ?crit?: > Anyone else having issues getting the VB drivers to load on 1708? > > > I keep gettting an "Error: unable to find the sources of your current Linux kernel..." message. > > > I do have kernel-devel installed and I had no issues running 1611 on the same host. I think you mean VirtualBox 5.1.26. And yes, there's some
2016 Dec 01
0
Different results for cos,sin,tan and cospi,sinpi,tanpi
Please note that you need to report your platforms (as per the posting guide), as the C function starts #ifdef HAVE_COSPI #elif defined HAVE___COSPI double cospi(double x) { return __cospi(x); } And AFAICS the system versions on Solaris and OS X behave the same way as R's substitute. On 01/12/2016 09:12, Martin Maechler wrote: >>>>>> Martin Maechler <maechler
2008 Aug 01
1
Solving Yis[i] = a*cos((2*pi/T)*(times[i] - Tau)) + ...
Hi everybody, I am reading the Lomb paper (Lomb, 1976) and I found an interesting equation, and I wish to resolve it using R. I am wondering if anybody has a hint. The equation is: Yis[i] = a*cos((2*pi/T)*(Times[i] - Tau)) + b*sin((2*pi/T)*(Times[i] - Tau)) ... (1) Where T and Tau are constants. I know the "Times" and "Tis" values (in fact these values come from a Time
2009 Nov 30
1
regression with a*cos(angle+phi)+b
Hello, the only thing I found to fit a sin/cos is s.th like lm(a~cos+sin) But this is not what I want. I have a magnitude which is sinusoidal with offset and it doesn't start at phi=0. The data is: angle<-c(0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180) Voltage<-c(-45.07, -45.24, -43.61, -40.78, -36.48, -30.92, -23.83, -15.95, -7.53, 1.06, 11.24,19.85, 27.00,
2017 Sep 14
1
Running COS 7.1708 on VirtualBox 5.1.28
> -----Original Message----- > From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Nicolas > Kovacs > Sent: Thursday, September 14, 2017 3:34 PM > To: centos at centos.org > Subject: Re: [CentOS] Running COS 7.1708 on VirtualBox 5.1.28 > > Le 14/09/2017 ? 21:32, Ken Gramm a ?crit?: > > Anyone else having issues getting the VB drivers to load on 1708? >
2007 Jan 08
0
[846] trunk/wxruby2/swig/classes/MultiChoiceDialog.i: Fixed - don''t use Ruby 1.9-style API calls cos this breaks older SWIGs
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2008 Mar 13
1
R Finance
Hi, I am an R novice working with financial data. I am developing a portfolio strategy evaluation technique to back-test the performance of our screens; checking how the screened stock would've performed over the period in question. I am using quantmod in R to download the historical data from yahoo and then analyzing it using PerformanceAnalytics. My problem is that, as our screens are done
2020 Jan 31
3
how to make asterisk set cos values
Hi, examining the network traffic with wireshark shows that asterisk does not set any QoS values at all. What do I need to do to make asterisk set QoS values (on Centos 7)? The wiki says to use vconfig to set QoS values[1]. What does the skb-priority need to be set to? How do you use vconfig on interfaces that are not VLAN interfaces? Is it generally impossible to set QoS values on
2016 Dec 01
2
Different results for cos,sin,tan and cospi,sinpi,tanpi
Hi, i try sin, cos, and tan. > sapply(c(cos,sin,tan),function(x,y)x(y),1.23e45*pi) [1] 0.5444181 0.8388140 1.5407532 However, *pi results the following > sapply(c(cospi,sinpi,tanpi),function(x,y)x(y),1.23e45) [1] 1 0 0 Please try whether the following becomes all right. diff -ruN R-3.3.2.orig/src/nmath/cospi.c R-3.3.2/src/nmath/cospi.c --- R-3.3.2.orig/src/nmath/cospi.c 2016-09-15
2002 Jan 25
2
selecting clusters of points
All: Are there any functions out there for selecting all the points in a region of a plot. I envision something like the identify() function except one could circle a cloud of points (and perhaps a vector would be returned of the same length as the points plotted indicating logical membership in the circled cloud). Perhaps someone has done something with the locator() function that would
2011 Jul 05
4
if else lop
I am trying to use if...else loop and have included a code snippet which I might like to expand. Maybe you could steer me in the right direction. library(stats) library(prob) { a <- sample ( 1:4,100, replace=T,prob=c(0.1,0.2,0.5,0.3)) b<-sample(3:6,100,replace=T,prob=c(0.2,0.2,0.2,0.4)) } dd <- data.frame(a,b) if (subset finds a vector) ( print that vector) (else
2016 Dec 01
2
Different results for cos,sin,tan and cospi,sinpi,tanpi
>>>>> Martin Maechler <maechler at stat.math.ethz.ch> >>>>> on Thu, 1 Dec 2016 09:36:10 +0100 writes: >>>>> Ei-ji Nakama <nakama at ki.rim.or.jp> >>>>> on Thu, 1 Dec 2016 14:39:55 +0900 writes: >> Hi, >> i try sin, cos, and tan. >>> sapply(c(cos,sin,tan),function(x,y)x(y),1.23e45*pi)