Sponsored Content
Full Discussion: message and method
Top Forums Programming message and method Post 302441079 by robinglow on Thursday 29th of July 2010 08:58:09 AM
Old 07-29-2010
message and method

Differentiate between the message and method.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Backup method

Hi I'm trying to work out the best method for creating a backup under SCO OpenServer. I would like to perform unattended backups to tape of various file systems, possibly using a script etc. So far I've looked at the Backup Manager that comes with SCO and that cannot perform unattended... (2 Replies)
Discussion started by: synamics
2 Replies

2. Shell Programming and Scripting

which encryption method?

hello ppl, i've been coding a perl script for xchat and i need to store the nick's passwords. i was wondering which encryption to use. picture this situation: i've got a system flaw and some guy hacks the machine and gets his hands on the passwd file; he has access to the script. what encryption... (2 Replies)
Discussion started by: crashnburn
2 Replies

3. UNIX for Dummies Questions & Answers

Optimized Method

Hi All, I have got two files. File A with 50000 records and File B with some 500 million records. I need to extract the mapping data (common data) from both the files. There should be definitely many ways :) though I have a way which is definitely not optimzed and takes a longer time... (2 Replies)
Discussion started by: matrixmadhan
2 Replies

4. Programming

How to limit max no of message in a posix message queue

Hii can anyone pls tell how to limit the max no of message in a posix message queue. I have made changes in proc/sys/fs/mqueue/msg_max But still whenever i try to read the value of max. message in the queue using attr.mq_curmsgs (where struct mq_attr attr) its giving the default value as 10.... (0 Replies)
Discussion started by: mohit3884
0 Replies

5. Programming

Regarding Native method

Hi, I am working with solaris 9 and I am using jre1.6. In my application,I am using java and C++ in my application.Basically we are using the java for front end and C/C++ for back hand.So I have to call the C/C++ source code form java code.we are using native methods for it.. So application... (1 Reply)
Discussion started by: smartgupta
1 Replies

6. Solaris

How to get the status of the method

Hi, I have created a services and method to start the processes. Method: #!/sbin/sh . /lib/svc/share/smf_include.sh case "$1" in 'start') /usr/local/proce start sleep 10 ;; 'stop') /usr/local/proce stop ;; *) echo... (5 Replies)
Discussion started by: kalpeer
5 Replies

7. Shell Programming and Scripting

Help in replace method

Hi Gurus, VARIABLE=john_*_has_*_s i want to replace the * with digits 09100 and 0010101 to print the john_09100_has_0010101_s Thanks (3 Replies)
Discussion started by: SeenuGuddu
3 Replies

8. Solaris

svc:/network/physical:default: Method "/lib/svc/method/net-physical" failed with exit status 96. [ n

After a memory upgrade all network interfaces are misconfigued. How do i resolve this issue. Below are some out puts.thanks. ifconfig: plumb: SIOCLIFADDIF: eg000g0:2: no such interface # ifconfig eg1000g0:2 plumb ifconfig: plumb: SIOCLIFADDIF: eg1000g0:2: no such interface # ifconfig... (2 Replies)
Discussion started by: andersonedouard
2 Replies

9. UNIX and Linux Applications

Ssmtp -t < /path/to/the/message.txt (How to format message.txt for html email)

ssmtp has been running well under Kubuntu 12.04.1 for plain text messages. I would like to send html messages with ssmtp -t < /path/to/the/message.txt, but I cannot seem to get the message.txt file properly formatted. I have tried various charsets, Content-Transfer-Encoding, rearranging the... (0 Replies)
Discussion started by: Ronald B
0 Replies

10. Shell Programming and Scripting

Another method for this snippet

Hi All, i believe this is not very efficient. another method would be appreciated for these. basically i read a file with tab delimited column and pass the column to another perl script. while read line do timestamp=`echo "$line"|awk -F"\t" '{print $1}'` severity=`echo... (15 Replies)
Discussion started by: ryandegreat25
15 Replies
Expression(3pm) 					User Contributed Perl Documentation					   Expression(3pm)

NAME
Math::Calculus::Expression - Algebraic Calculus Tools Expression Class SYNOPSIS
use Math::Calculus::Expression; # Create an expression object. my $exp = Math::Calculus::Expression->new; # Set a variable and expression. $exp->addVariable('x'); $exp->setExpression('x^(2+1) + 6*5*x') or die $exp->getError; # Simplify $exp->simplify or die $exp->getError;; # Print the result. print $exp->getExpression; # Prints x^3 + 30*x DESCRIPTION
This module can take an algebraic expression, parse it into a tree structure, simplify the tree, substitute variables and named constants for other variables or constants (which may be numeric), numerically evaluate the tree and turn the tree back into an output of the same form as the input. It supports a wide range of expressions including the +, -, *, / and ^ (raise to power) operators, bracketed expressions to enable correct precedence and the functions ln, exp, sin, cos, tan, sec, cosec, cot, sinh, cosh, tanh, sech, cosech, coth, asin, acos, atan, asinh, acosh and atanh. EXPORT
None by default. METHODS
new $exp = Math::Calculus::Expression->new; Creates a new instance of the expression object, which can hold an individual expression and perform basic operations on it. addVariable $exp->addVariable('x'); Sets a certain named value in the expression as being a variable. A named value must be an alphabetic chracter. setExpression $exp->setExpression('x^2 + 5*x); Takes an expression in human-readable form and stores it internally as a tree structure, checking it is a valid expression that the module can understand in the process. Note that the module is strict about syntax. For example, note above that you must write 5*x and not just 5x. Whitespace is allowed in the expression, but does not have any effect on precedence. If you require control of precedence, use brackets; bracketed expressions will always be evaluated first, as you would normally expect. The module follows the BODMAS precedence convention. Returns undef on failure and a true value on success. getExpression $expr = $exp->getExpression; Returns a textaul, human readable representation of the expression that is being stored. simplify $exp->simplify; Attempts to simplify the expression that is stored internally. evaluate $exp->evaluate(x => 0.5, a => 4); This method takes a hash mapping any variables and named constants (represented by letters) in the expression to numerical values, and attempts to evaluate the expression and return a numerical value. It fails and returns undef if it finds letters that have no mapping or an error such as division by zero occurs during the evaluation. sameRepresentation $same = $exp->sameRepresentation($exp2); The sameRepresentation method takes another expression object as its parameter and returns true if that expression has the same internal representation as the expression the method is invoked on. Be careful X while it can be said that if two expressions have the same representation they are equal, it would be wrong to say that if they have different representations they are not equal. It is clear to see that "x + 2" and "2 + x" are equal, but their internal representation may well differ. clone $expCopy = $exp->clone; The clone method returns a deep copy of the expression object (deep copy meaning that if the original is modified the copy will not be affected and vice versa). getTraceback $exp->getTraceback; When setExpression and differentiate are called, a traceback is generated to describe what these functions did. If an error occurs, this traceback can be extremely useful in helping track down the source of the error. getError $exp->getError; When any method other than getTraceback is called, the error message stored is cleared, and then any errors that occur during the execution of the method are stored. If failure occurs, call this method to get a textual representation of the error. Other Methods Any other method call is taken to refer to a subclass of Expression. The first letter of the name of the method invoked is capitalized, then a module by that name is loaded (if it exists) and the method is called on it. This works for, for example, the Differentiate module; calling the differentiate method on an Expression will load the Differentiate module and call the differentiate method. If a module cannot be loaded or the method cannot be called, then this module will die. SEE ALSO
The author of this module has a website at <http://www.jwcs.net/~jonathan/>, which has the latest news about the module and a web-based frontend to allow you to try out this module and, more specifically, its subclasses. AUTHOR
Jonathan Worthington, <jonathan@jwcs.net> COPYRIGHT AND LICENSE
Copyright (C) 2004 by Jonathan Worthington This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available. POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 57: '=item' outside of any '=over' Around line 398: You forgot a '=back' before '=head1' perl v5.10.0 2005-07-30 Expression(3pm)
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy