MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Beginner--Simplest question: How to control some values in Input dialog box

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67750] RE: [mg67715] Beginner--Simplest question: How to control some values in Input dialog box
  • From: "Ingolf Dahl" <ingolf.dahl at telia.com>
  • Date: Thu, 6 Jul 2006 06:53:34 -0400 (EDT)
  • Reply-to: <ingolf.dahl at telia.com>
  • Sender: owner-wri-mathgroup at wolfram.com

What about

CN= Input["Give an positive integer value to CN"];
 While[ Or[ Not[ IntegerQ[CN]], CN<=0], CN= Input["Please, try to give a
positive integer value to CN"]];
 c= Input["Give a positive real value to c less than 0.9"];
 While[ Or[ Not[ NumberQ[c]], c<=0, c>=0.9], c= Input["What the heck, c
needs a positive real value to c less than 0.9!"]]; { CN,c}

Best regards
Ingolf Dahl
Sweden


-----Original Message-----
From: abdou.oumaima at hotmail.com [mailto:abdou.oumaima at hotmail.com] 
To: mathgroup at smc.vnet.net
Subject: [mg67750] [mg67715] Beginner--Simplest question: How to control some values
in Input dialog box

Hi mathematica users,

In the begining of my program, I've to initialize some parametres. I would
like to do some control on them.

I put:

CN= Input["Give an positive integer value to CN"];
c= Input["Give a positive real value to c less than 0.9"]

How to control the values CN and c so that they verify my conditions in the
message box?

Any help please.

Thank you for all of you

Link to the forum page for this post:
http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Speci
al:Forum_ViewTopic&pid=11670#p11670
Posted through http://www.mathematica-users.org [[postId=11670]]



  • Prev by Date: Re: Plot Question
  • Next by Date: Subvalues and Parameters in Differentiation and Usage Messages
  • Previous by thread: Re: Beginner--Simplest question: How to control some values in Input dialog box
  • Next by thread: Re: Beginner--Simplest question: How to control some values in Input dialog box