Sponsored Content
Top Forums Shell Programming and Scripting Script to solve second order (polynomial) interpolation Post 302759129 by Corona688 on Monday 21st of January 2013 02:19:34 PM
Old 01-21-2013
What do you mean by polynomial interpolation?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

variable interpolation

I've become obsessed with trying to get this to work. As of yet, I am unable to figure it out. Unfortunately, I don't have Linux or UNIX available when I get home. Anyone have tips for me on how I can pass param1 to ID via use of COUNTER and loop? thx. LIMIT=6 param1="999999999" export... (0 Replies)
Discussion started by: egkumpe
0 Replies

2. Shell Programming and Scripting

Help me to solve some question about shell Script

Factorial calculation Example output: Please enter a non-negative number: 3 3! = 3 X 2 X 1 = 6 Please enter a non-negative number: 10 10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1 = 3628800 Please enter a non-negative number:... (1 Reply)
Discussion started by: cenco
1 Replies

3. Shell Programming and Scripting

Help me to solve some question about shell Script

Factorial calculation Example output: Please enter a non-negative number: 3 3! = 3 X 2 X 1 = 6 Please enter a non-negative number: 10 10! = 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1 = 3628800 Please enter a non-negative number: -1 ... (1 Reply)
Discussion started by: cenco
1 Replies

4. UNIX for Advanced & Expert Users

Help! SHELL or AWK script - only the masters of the forum will solve

Hello everybody! I have no experience with shell Programmer, but I need to compare 02 files. Txt and generate an output or a new file, after the comparisons. see: If the column 1 of file1 is equal to column 1 of file2, and column 3 of file2 contains the column 4 of file1, output: column1... (4 Replies)
Discussion started by: He2
4 Replies

5. Shell Programming and Scripting

Bash or awk script to solve this problem

Hi everybody! I have written some awk scripts that return me some results I need to process. At the moment I use openOffice to process them, but I am trying to find a more efficient solution using possibly a bash or awk script. I have two files, file1 is in the format: time position ... (3 Replies)
Discussion started by: Alice236
3 Replies

6. Shell Programming and Scripting

I have a bash script and tried very hard but i couldn't solve it please help

please can you help me with this script ( very very important ) what I'm trying is to write program that accepts list of user as its argument 1- If a user or more are given as arguments, the script should reset files permissions as follows: a. Directory ~/share to 750 (if it exists). b. All... (10 Replies)
Discussion started by: testman84
10 Replies

7. Shell Programming and Scripting

Hi ! whether it is possible to do interpolation in scripting...

Hi ! Experts... I just wanted to know whether it is possible in scripting...to do interpolation.... if so....have a look on my data file I need temperature and salinity value with a bin size of 0.5 m output looks somewhat like this dep temp sal 0.5 25 0.077 1 25 ... (12 Replies)
Discussion started by: nex_asp
12 Replies

8. Shell Programming and Scripting

How to solve hang issue in script?

i have one function block in the beginning of my script and there are some commands inside that function which will perform some operations. And i am invoking that function from my main script by passing some values. Sometimes it is hanging in the middle for some value. For example: For 1st... (3 Replies)
Discussion started by: thomasraj87
3 Replies

9. Shell Programming and Scripting

Shell script to solve query

Hi I have data in the below format in two columns in excel which i will copy to notepad. test as rec1, string test as rec2, byteint test as rec3, string update date as test, datetime name as tes2 string I need to add trim function on all the string columns and keep the remaining... (10 Replies)
Discussion started by: pisikar
10 Replies
math::polynomials(n)						 Tcl Math Library					      math::polynomials(n)

__________________________________________________________________________________________________________________________________________________

NAME
math::polynomials - Polynomial functions SYNOPSIS
package require Tcl ?8.3? package require math::polynomials ?1.0.1? ::math::polynomials::polynomial coeffs ::math::polynomials::polynCmd coeffs ::math::polynomials::evalPolyn polynomial x ::math::polynomials::addPolyn polyn1 polyn2 ::math::polynomials::subPolyn polyn1 polyn2 ::math::polynomials::multPolyn polyn1 polyn2 ::math::polynomials::divPolyn polyn1 polyn2 ::math::polynomials::remainderPolyn polyn1 polyn2 ::math::polynomials::derivPolyn polyn ::math::polynomials::primitivePolyn polyn ::math::polynomials::degreePolyn polyn ::math::polynomials::coeffPolyn polyn index ::math::polynomials::allCoeffsPolyn polyn _________________________________________________________________ DESCRIPTION
This package deals with polynomial functions of one variable: o the basic arithmetic operations are extended to polynomials o computing the derivatives and primitives of these functions o evaluation through a general procedure or via specific procedures) PROCEDURES
The package defines the following public procedures: ::math::polynomials::polynomial coeffs Return an (encoded) list that defines the polynomial. A polynomial f(x) = a + b.x + c.x**2 + d.x**3 can be defined via: set f [::math::polynomials::polynomial [list $a $b $c $d] list coeffs Coefficients of the polynomial (in ascending order) ::math::polynomials::polynCmd coeffs Create a new procedure that evaluates the polynomial. The name of the polynomial is automatically generated. Useful if you need to evualuate the polynomial many times, as the procedure consists of a single [expr] command. list coeffs Coefficients of the polynomial (in ascending order) or the polynomial definition returned by the polynomial command. ::math::polynomials::evalPolyn polynomial x Evaluate the polynomial at x. list polynomial The polynomial's definition (as returned by the polynomial command). order) float x The coordinate at which to evaluate the polynomial ::math::polynomials::addPolyn polyn1 polyn2 Return a new polynomial which is the sum of the two others. list polyn1 The first polynomial operand list polyn2 The second polynomial operand ::math::polynomials::subPolyn polyn1 polyn2 Return a new polynomial which is the difference of the two others. list polyn1 The first polynomial operand list polyn2 The second polynomial operand ::math::polynomials::multPolyn polyn1 polyn2 Return a new polynomial which is the product of the two others. If one of the arguments is a scalar value, the other polynomial is simply scaled. list polyn1 The first polynomial operand or a scalar list polyn2 The second polynomial operand or a scalar ::math::polynomials::divPolyn polyn1 polyn2 Divide the first polynomial by the second polynomial and return the result. The remainder is dropped list polyn1 The first polynomial operand list polyn2 The second polynomial operand ::math::polynomials::remainderPolyn polyn1 polyn2 Divide the first polynomial by the second polynomial and return the remainder. list polyn1 The first polynomial operand list polyn2 The second polynomial operand ::math::polynomials::derivPolyn polyn Differentiate the polynomial and return the result. list polyn The polynomial to be differentiated ::math::polynomials::primitivePolyn polyn Integrate the polynomial and return the result. The integration constant is set to zero. list polyn The polynomial to be integrated ::math::polynomials::degreePolyn polyn Return the degree of the polynomial. list polyn The polynomial to be examined ::math::polynomials::coeffPolyn polyn index Return the coefficient of the term of the index'th degree of the polynomial. list polyn The polynomial to be examined int index The degree of the term ::math::polynomials::allCoeffsPolyn polyn Return the coefficients of the polynomial (in ascending order). list polyn The polynomial in question REMARKS ON THE IMPLEMENTATION
The implementation for evaluating the polynomials at some point uses Horn's rule, which guarantees numerical stability and a minimum of arithmetic operations. To recognise that a polynomial definition is indeed a correct definition, it consists of a list of two elements: the keyword "POLYNOMIAL" and the list of coefficients in descending order. The latter makes it easier to implement Horner's rule. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category math :: polynomials of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
math, polynomial functions COPYRIGHT
Copyright (c) 2004 Arjen Markus <arjenmarkus@users.sourceforge.net> math 1.0.1 math::polynomials(n)
All times are GMT -4. The time now is 09:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy