Sponsored Content
Full Discussion: factor [start[stop]
Top Forums UNIX for Dummies Questions & Answers factor [start[stop] Post 302539261 by statichazard on Saturday 16th of July 2011 01:17:23 AM
Old 07-16-2011
factor [start[stop]

Another question for you guys! This is so fun.

So I am playing around with the factor operation. I read in "man factor" that you can actually print a list of primes in between a range, using the syntax

Code:
factor [start[stop]]

However, every time I enter two values, it just returns the factored value. For example, if I enter "factor 10 20" it returns the factors of 10 and 20, instead of 11, 13, 17, 19.

Also, typing factor 10[20] gives an error.

Does anyone know how to use this function?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Start/Stop Script

I'm a newbie to the Unix world Help! I have to maintain a host of Sybase database servers sitting on Unix Sun Solaris 8...I've been tasked with finding/creating a way to auto start/stop Unix via unix commands, specifically when the Unix servers need to be restarted we want Sybase to start... (2 Replies)
Discussion started by: jjv1
2 Replies

2. UNIX for Dummies Questions & Answers

Stop/Start proftpd

Hi everyone, I was wondering how to configure ftp access for one user when I found this board. After some searches I found my infos around proftpd (and the great config file proftpd.conf who answered to all my dreams...) but now I only need to stop proftpd and restart it (I guess it is needed... (1 Reply)
Discussion started by: Lomic
1 Replies

3. AIX

Start Stop Apache

I am in the process of reorging my Lawson db. I need to turn off the RMI server...not a problem. However my instructions also state that I must also shutdown my Servlet Container....I believe it is Apache. I have looked in /usr/apache/bin/apachectl What is the command for stopping and... (2 Replies)
Discussion started by: MILLERJ62
2 Replies

4. HP-UX

ypbind start/stop

Hi, How to start or stop ypbind on HP-UX machine. Searched a little but could not find. thanks, (2 Replies)
Discussion started by: jredx
2 Replies

5. Shell Programming and Scripting

Start Stop Restart

I'm wondering how I should make a script that can start, stop, and restart another script. What I need to be able to do, is start and stop a perl script from the command line. The easiest way of doing this seems to be to have another script, starting and stopping the other script. I have BASH,... (7 Replies)
Discussion started by: Bakes
7 Replies

6. Shell Programming and Scripting

Servers Stop and Start

Hi, Every time i want to stop and start servers using PuTTY,i have to execute 6 to 10 commands every time ,i need shell script(program) for execute those commands in single command.Is it possible plz suggest me. (3 Replies)
Discussion started by: RG18173
3 Replies

7. Shell Programming and Scripting

Servers Start and Stop

HI I am using below code to start and stop servers but it is not working ,how to run the script please suggest me ,if any errors in the script please let me know. #!/bin/bash IMS_START="/Webserver/AppServer/bin/startServer.sh" IMS_STOP="/Webserver/AppServer/bin/stopServer.sh" case "$1" in ... (1 Reply)
Discussion started by: RG18173
1 Replies

8. Solaris

How to start/stop processes

Please anyone tell me In my last interview the HR asks me how to monitor, start,stop & kill the various processes and subprocesses. Please anyone explain me clearly. It's my personal request (3 Replies)
Discussion started by: suneelieg
3 Replies

9. UNIX for Dummies Questions & Answers

Stop/Start vs. Restart

Is there any functional difference between: issuing separate stop/start commands like this; super (handler) (instance) stop super (handler) (instance) start versus issuing a single recycle command like this; super (handler) (instance) restart (3 Replies)
Discussion started by: Newbix
3 Replies

10. AIX

stop and start the mirroring on rootvg !

How to can I stop and start the mirroring on rootvg How to can I know if the mirroring enabled or disabled in the rootvg Please explain and advice! P690_root/>lspv hdisk0------- 00c52c221cf77869---------------------rootvg------- active hdisk1-------... (1 Reply)
Discussion started by: Mr.AIX
1 Replies
mlib_SignalUpSample_S16_S16(3MLIB)			    mediaLib Library Functions				mlib_SignalUpSample_S16_S16(3MLIB)

NAME
mlib_SignalUpSample_S16_S16, mlib_SignalUpSample_S16S_S16S, mlib_SignalUpSample_F32_F32, mlib_SignalUpSample_F32S_F32S - signal upsampling SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalUpSample_S16_S16(mlib_s16 *dst, const mlib_s16 *src, mlib_s32 factor, mlib_s32 phase, mlib_s32 n); mlib_status mlib_SignalUpSample_S16S_S16S(mlib_s16 *dst, const mlib_s16 *src, mlib_s32 factor, mlib_s32 phase, mlib_s32 n); mlib_status mlib_SignalUpSample_F32_F32(mlib_f32 *dst, const mlib_f32 *src, mlib_s32 factor, mlib_s32 phase, mlib_s32 n); mlib_status mlib_SignalUpSample_F32S_F32S(mlib_f32 *dst, const mlib_f32 *src, mlib_s32 factor, mlib_s32 phase, mlib_s32 n); DESCRIPTION
Each of these functions performs upsampling. For monaural signals, the following equation is used: dst[i] = src[k] if i == k*factor + phase dst[i] = 0 if i != k*factor + phase where k = 0, 1, ..., (n - 1); i = 0, 1, ..., (n*factor - 1). For stereo signals, the following equation is used: dst[2*i] = src[2*k] if i == k*factor + phase dst[2*i] = 0 if i != k*factor + phase dst[2*i + 1] = src[2*k + 1] if i == k*factor + phase dst[2*i + 1] = 0 if i != k*factor + phase where k = 0, 1, ..., (n - 1); i = 0, 1, ..., (n*factor - 1). PARAMETERS
Each of the functions takes the following arguments: dst Output signal array. src Input signal array. factor Factor by which to upsample. factor >= 1. phase Parameter that determines relative position of an input value, within the output signal. 0 <= phase < factor. n Number of samples in the input signal array. RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_SignalDownSample_S16_S16(3MLIB), attributes(5) SunOS 5.10 10 Nov 2004 mlib_SignalUpSample_S16_S16(3MLIB)
All times are GMT -4. The time now is 02:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy