Displaying 20 results from an estimated 4000 matches similar to: "R vs Fortran"
2010 Oct 08
1
Trapezoid Rule
Dear R Users,
I've never used R before and my professor has asked us to do some
pretty intense programming (or it's intense to me at least). Here is
the question: Modify the function myquadrature inside the script so
that it returns the quadrature of descrete data using the trapezoidal
rule. Modify the call to the function at the bottom of the script so
that is uses your modifies
2001 Nov 20
2
quiver plot help
Hello everybody
I'm trying to write a simple version of matlab's "quiver".
The idea is that I have fluid with velocity defined on a grid. I have
a matrix of x-components of velocity and a matrix of y-components and
I want to see the overall flow pattern. (I work with 2D fluid
mechanics problems).
My first-stab function is below:
quiver <- function(u,v,scale=1)
# first
2010 Jul 21
0
Converting Between Character and Numeric Objects
Hello,
I'm trying to convert a vector of string objects to a numeric object by
initializing the variables with values. I use the function below to scan
through a matrix and create mass action flux relationships:
makeMassActionFluxes = function(sMatrix) {
#Allocate a matrix with identical dimensions as the inputted stoichiometric
matrix
temp = matrix(nrow = dim(sMatrix)[1], ncol =
2008 Jan 30
9
catching errors, rspec basics
Trying to spec the following but don''t know if I''m using the right matcher.
How do I spec? Plz, sugar on tops.
Audience.stats
- should have a stats of 80 when passed a flux of 10
- should return an error when passed a string (ERROR - 1)
1)
TypeError in ''Audience.stats should return an error when passed a string''
String can''t be coerced into Fixnum
2007 Jun 22
1
exemple html - RSS
alex écrit:
Ce n''est pas possible d''afficher RSS/atom lui-même avec Wx::HtmlWindow.
Mais vous pouvez vous servir de quelques bibliothèques ruby pour
chercher RSS (par exemple ''net/http'', ''mechanize'', ''http-access2'') et
l''analyser (par exemple ''rexml'').
Donc, on devrait créer HTML qui répresente
2004 Sep 08
1
CUPS integration does not work properly when not linked
I have a Samba 3.0.6 server and a CUPS 1.2.0 server running on my machine.
They have been compiled with:
Samba:
./configure --with-pam --with-pam_smbpass --with-quotas --with-sys-quotas
CUPS:
./configure --prefix=/usr/local/cups --with-cups-user=cups --with-cups-
group=cups --with-docdir=/usr/local/cups/docdir --with-
logdir=/usr/local/cups/logdir --with-rcdir=/usr/local/cups/rcdir
--enable-ssl
2006 Jul 16
2
CFD Plots in R and Other Things
Dear All,
I am getting some data from fluid dynamics simulations (air mixing in
a pipe, 2D axial symmetry, geometry described by a radial coordinate r
and an axial coordinate z) which I'd like to plot and analyze with R.
Think about slicing the cylinder along its axial direction to get a
set of cross sections which are orthogonal to the z axis.
For each section, I have a set of velocity
2013 Mar 29
1
multiple plots and looping assistance requested (single plot)
HI Irucka,
Please check this:
temp<- structure(list(`:Bostoncitydata` = structure(list(Month = c(1L,
2L, 3L, NA), Data1 = c(1.5, 12.3, 11.4, NA), Data2 = c(9.1342,
12.31, 3.5, NA)), .Names = c("Month", "Data1", "Data2"), class = "data.frame", row.names = c(NA,
-4L)), `:Chicagocitydata` = structure(list(Month = c(1L, 2L,
3L, 4L, 5L, NA), Data1 = c(1.52,
2013 Mar 07
5
multiple plots and looping assistance requested (revised codes)
Hi Irucka,
I tried it and was able to plot it without any errors.? Here, your code indicates you need two lines. temper[[i]][1]
?temper[[1]][1] # which is the column 1.
? Month
1???? 1
2???? 2
3???? 3
?temper[[1]][2]
#? Data1
#1?? 1.5
#2? 12.3
#3? 11.4
Suppose I use names(temper) instead of seq_along(temper)
pdf("irucka.pdf")
?lapply(names(temper),function(i)
2019 Feb 10
2
AD Backup Best Practice
On Sun, 10 Feb 2019 at 17:42, Rowland Penny via samba <samba at lists.samba.org>
wrote:
>
>
> The problem is that a Samba AD DC is constantly in flux, that is, it
> changes constantly, if your 'snapshot' can guarantee it is correct,
> then I see no problem, but you would only really know when you tried
> to restore it.
>
> >With regards to information
2004 Oct 22
1
building an R package : where and how should my fortran library be loaded ?
Hi ,
I'm currently trying to make available
a few fortran subroutines and R functions
(which make interface to these subroutines),
as an R package.
I'm doing it under linux with R 1.9.0
(but hope to do it for windows too).
I have trouble for loading my fortran code.
Here are the steps involved :
1) In R:
# Create tree for package
2013 Mar 05
2
multiple plots and looping assistance requested
Hi all, I have a couple of questions.
1) Is there a more effective way to remove the following pattern
(patternrm) from the station_id_Timeseries (see below)
patternrm <- c(_2000_4_OND, _2001_1_JFM, _2001_2_AMJ, _2001_3_JAS,
_2001_4_OND, _2002_1_JFM, _2002_2_AMJ, _2002_3_JAS, _2002_4_OND,
_2003_1_JFM, _2003_2_AMJ, _2003_3_JAS, _2003_4_OND, _2004_1_JFM,
_2004_2_AMJ, _2004_3_JAS, _2000_4_OND) #
2018 Dec 07
2
Testing compiler reliability using Csmith
Hello everyone!
We are working on writing a paper about testing the reliability of C compilers by using Csmith (a random C99 program generator).
A previous testing effort, using Csmith, found 202 LLVM bugs, which represented 2% of all reported bugs at that time (PDF: https://www.flux.utah.edu/download?uid=114 <https://www.flux.utah.edu/download?uid=114>): . However, after this paper was
2005 Sep 14
1
Long lines with Sweave
I have used Sweave a lot the latest year, but never really used any long
function calls.
If I have code which look like this
-------------------------------------------------------------
gof <- benthic.flux(ID="Gulf of Finland",
meas.conc=conc,
bw.conc=bw.conc,
time=times,
2019 Feb 10
2
AD Backup Best Practice
On Sun, 10 Feb 2019 at 19:52, Rowland Penny via samba <samba at lists.samba.org>
wrote:
> On Sun, 10 Feb 2019 19:33:17 +0100
> Viktor Trojanovic <viktor at troja.ch> wrote:
>
> > On Sun, 10 Feb 2019 at 17:42, Rowland Penny via samba
> > <samba at lists.samba.org> wrote:
> >
> > >
> > >
> > > The problem is that a Samba AD DC
2018 Jun 19
1
Building rpcclient statically linked?
On Tue, 2018-06-19 at 12:41 -0400, pisymbol wrote:
>
>
> On Tue, Jun 19, 2018 at 5:31 AM, pisymbol <pisymbol at gmail.com> wrote:
> >
> > On Mon, Jun 18, 2018 at 11:36 PM, Andrew Bartlett <abartlet at samba.org> wrote:
> > > On Mon, 2018-06-18 at 15:56 -0400, pisymbol wrote:
> > > > I have a binary based off of rpclient that prints out the
2009 Oct 26
17
[Bug 1667] New: sshd slow connect with 'UseDNS yes'
https://bugzilla.mindrot.org/show_bug.cgi?id=1667
Summary: sshd slow connect with 'UseDNS yes'
Product: Portable OpenSSH
Version: 5.2p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy:
2018 Jun 19
2
Building rpcclient statically linked?
On Mon, Jun 18, 2018 at 11:36 PM, Andrew Bartlett <abartlet at samba.org>
wrote:
> On Mon, 2018-06-18 at 15:56 -0400, pisymbol wrote:
> > I have a binary based off of rpclient that prints out the raw share
> > SD as a binary stream instead of trying to parse it into human
> > readable format (the default behavior). That is what I'm after.
> >
> >
2018 May 29
1
Difficulty in writing R code for one pool dynamic model
Hi everyone,
I was trying to mode the following exercise using R.
The question: Set up a one pool model using numericintegration. The model will run from time 1 to time 30 using a time step of 1.The pool (A) will be fed by flux "inA" at a rate of 5 units per hour anddrained by flux "outA" at a rate of 20% per hour. At time 0, A has 5units. At time 30, what is the pool size of
2011 Aug 16
1
deSolve, extracting variable values from inside ode function
I'm just getting to grips with using ode function and have used the
examples and vignettes to produce a small model of a one-pool,
michaelis-menten, enzyme kinetic reaction. The rate of flux of substrate
into pool A is constant (fluxoa) however the rate of flux out of pool A
is controlled by the HMM equation (v = Vmax/ ( 1 + (Km / Concentration A
)) ). This function works fine and