MathGroup Archive 2003

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

Search the Archive

Re: Asking about MSPScript

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42100] Re: [mg42087] Asking about MSPScript
  • From: Ken Levasseur <klevasseur at mac.com>
  • Date: Thu, 19 Jun 2003 03:59:10 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

You define and plot functions the same way as in Mathematica.  For example,
the body of the script at
http://www.hostsrv.com/webmaa/app1/MSP/webm1010/mathgroup.msp is

<%Mathlet MSPBlock[{$$u}, Fun[x1_,x2_,x3_]:= x1*$$u^3 + x2*$$u^2 + x3*5] %>
This script plots slices of <%Mathlet MSPFormat[Fun[x,y,z],TraditionalForm]
%> 
<br>
<table><tr><td>
u: <INPUT TYPE="TEXT" NAME="u" ALIGN="LEFT" SIZE="10" VALUE =
   "<%Mathlet MSPValue[ $$u, "5"] %>">
</table>
<HR>
<INPUT TYPE="Submit" NAME="btnSubmit" VALUE="Evaluate">
</FORM>

<HR>
<%Mathlet 
    MSPBlock[ {$$u},
        MSPShow[ Plot[{Fun[x,1,1],Fun[1,x,1],Fun[1,1,x]}, {x,0,1}]]] %>

Ken Levasseur
UMass Lowell 

> From: lohleeping <lohleeping at hotmail.com>
To: mathgroup at smc.vnet.net
> Date: Wed, 18 Jun 2003 02:11:21 -0400 (EDT)
> To: mathgroup at smc.vnet.net
> Subject: [mg42100] [mg42087] Asking about MSPScript
> 
> 
> Hi there,
> I would like to know how to assign a function in MSPScript.
> For example,
> Fun(x1_,x2_,x3_):= x1*u^3 + x2*u^2 + x3*5;
> 
> Another question, how to plot 2 curves in one graph in
> MSPScript.
> 
> Thank you.
> 
> Best regards,
> Loh Lee Ping
> 
> 


  • Prev by Date: Re: printing and file convertion with mathematica
  • Next by Date: Re: Calculus Wiz Help
  • Previous by thread: Re: Asking about MSPScript
  • Next by thread: Asking about MSPScript