COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Cassette routine uncommented

• Email
• Follow

```http://groups.google.com/group/comp.sys.cbm/msg/cd977eced0639726

```
 0

See related articles to this posting

0 Replies
92 Views

Similar Articles

12/7/2013 12:25:08 PM
page loaded in 36743 ms. (0)

Similar Artilces:

ASIN / ARCSIN Routine
I have 2 different rountines to do this (shown below) and neither one returns the same answer as the C asin function. In C asin(-0.06/(5.7-(3.25/2))) returns -0.0147244584421. Thanks Stan Public Function ArcSin(ByVal X As Double) As Double 'Mine If X = 1# Then ArcSin = kPI / 2 ElseIf X = -1# Then ArcSin = -kPI / 2 Else ArcSin = Atn(X / ((1 - X ^ 2) ^ 0.5)) End If End Function Public Function Arcsin(ByVal X As Double) As Double Inverse Sine If Abs(X) = 1 Then Arcsin = Atn(1) * Sgn(X) * 2 Else Arcsin = Atn(X / Sqr(-X * X + 1))

Need a string printing routine
I'm resuming my efforts of learning assembly language, and have started using Merlin Pro 2.4 two evenings ago, and I am really liking it! Anyway, I've come into a bit of a snag, since I want to output message strings, and do it efficiently without copying code. What I've got are a bunch of equates for the message strings all together at the top of the assembly file, with the other equates, so as to improve code readability and maintainability. What I want is one routine which can print out the string, stopping at a \$00 byte, when given the starting address of the message string...;m resuming my efforts of learning assembly language, and have started > using Merlin Pro 2.4 two evenings ago, and I am really liking it! > > Anyway, I've come into a bit of a snag, since I want to output message > strings, and do it efficiently without copying code. What I've got are a > bunch of equates for the message strings all together at the top of the > assembly file, with the other equates, so as to improve code readability > and > maintainability. What I want is one routine which can print out the string, > stopping at a \$00 byte, when given

convert C routine to Mex-function (matlab executive)
Hi, I'm trying to convert a simple C-routine to a mex file called trisol.c. It should probably be simple enough but I just need some help :-) I want to start from this code: ------- #include "mex.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { int i, j, m, n; double *data1_prhs, *data2_output; if (nrhs != nlhs) mexErrMsgTxt("The number of input and output arguments must be the same."); /* go through (number of) nrhs Matlab arguments from the beginning */ for (i = 0; i < nrhs; i++) { /* Find the dimension of the data..., forget about the top part of my previous posting. This should be > much easier to understand and see: > > I need an integer + 4 double arrays for input. How do I do that? For the MEX routine? You need to specify it, and then check if the arguments that are passed from matlab are as specified. Use, say, mxIsInt16 and mxIsDouble along with dimension tests to see if the arguments are as specified. > > ----- > > void Trisol(int n, > > double KoefA[nrhs], > > double KoefB[nrhs], > > double KoefC[nrhs], > >

Book on HP-UX Certification and Routine Administration
Hi there, My book on HP-UX certification and routine administration is out and is available in both paperback and hardcover formats. ISBNs are 1-4196-45935 and 1-4243-2282-0. I have launched a website www.getitcertify.com to support readers of the book. Please provide your feedback to the email provided on the website. Thanks