Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

finding roots tests=MIME_BOUND_NEXTPART,RCVD_IN_ORBS,RCVD_IN_OSIRUSOFT_COM, X_OSIRU_OPEN_RELAY version=2.55

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50975] finding roots tests=MIME_BOUND_NEXTPART,RCVD_IN_ORBS,RCVD_IN_OSIRUSOFT_COM, X_OSIRU_OPEN_RELAY version=2.55
  • From: "sohaib malik" <hihoney6 at hotmail.com>
  • Date: Thu, 30 Sep 2004 04:52:27 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

hi

i am trying the roots using mathematica .please help me in solving my
problem.please find attached my mathematica code.waiting for reply from your
side.

                                                   Thanks and regards



(************** Content-type: application/mathematica **************
                     CreatedBy='Mathematica 4.2'

                    Mathematica-Compatible Notebook

This notebook can be used with any Mathematica-compatible
application, such as Mathematica, MathReader or Publicon. The data
for the notebook starts with the line containing stars above.

To get the notebook into a Mathematica-compatible application, do
one of the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the
  application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing
the word CacheID, otherwise Mathematica-compatible applications may

try to use invalid cache data.

For more information on notebooks and Mathematica-compatible
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info at wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from
Wolfram Research.
*******************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      3922,         94]*)
(*NotebookOutlinePosition[      4566,        116]*)
(*  CellTagsIndexPosition[      4522,        112]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[BoxData[{
    \(\(t = 2*10^\(-3\);\)\), "\[IndentingNewLine]",
    \(\(v =  .3;\)\), "\[IndentingNewLine]",
    \(\(E11 = 1.9*10^11;\)\), "\[IndentingNewLine]",
    \(\(rho = 7850;\)\), "\[IndentingNewLine]",
    \(\(n = 0;\)\), "\[IndentingNewLine]",
    \(\(x = Table[{j, j}, {j, 1, 3000}]*0;\)\), "\[IndentingNewLine]",
    \(\(y = Table[{j, j}, {j, 1, 3000}]*0;\)\), "\[IndentingNewLine]",
    \(\(For[w = 20000, w < 1520000, w = w + 500,
        n = n + 1; \[IndentingNewLine]d = \((w*t)\)/2*
            Sqrt[\((\((2  rho \((1 + v)\))\)/
                  E11)\)]; \[IndentingNewLine]z = \((1 - 2*v)\)/\((2 -
                2*v)\); \[IndentingNewLine]a =
          E11/\((2  rho \((1 + v)\)*L^2)\); \[IndentingNewLine]h =
          Tan[Sqrt[\((1 - a)\)]*d]/
              Tan[Sqrt[\((z - a)\)]*d] + \((2  a - 1)\)^2/\((4  a*
                  Sqrt[\((1 - a)\)]*
                  Sqrt[\((z - a)\)])\); \[IndentingNewLine]x[\([n, 2]\)] =
          N[Re[L /. FindRoot[
                  h \[Equal] 0, {L, 1000, 100,
                    4000}]]]; \[IndentingNewLine]x[\([n, 1]\)] = \(\(N[w]/2\)/
              Pi\)/1000;];\)\), "\[IndentingNewLine]",
    \(\(n = 0;\)\), "\[IndentingNewLine]",
    \(\(For[i = 1, i < 2999, \(i++\), n = n + 1;
        f = \((x[\([i + 1, 1]\)] + x[\([1, 1]\)])\)/2;
        cp = \((x[\([i + 1, 2]\)] + x[\([1, 2]\)])\)/2;
        g = \((x[\([i + 1, 2]\)] - x[\([i, 2]\)])\)/\((x[\([i + 1, 1]\)] -
                x[\([i, 1]\)])\); cg = cp/\((1 - f/cp*g)\);
        y[\([n, 1]\)] = f; \[IndentingNewLine]y[\([n, 2]\)] =
          cg;];\)\), "\[IndentingNewLine]",
    \(\(one =
        ListPlot[x, PlotLabel -> "\<Lamb Wave Phase Velocity for Steel\>",
          PlotRange -> {{0, 3500}, {0, 4000}},
          FrameLabel -> {"\<Frequency(kHz)\>", "\<Phase Velocity(m/s)\>"}];\)\
\), "\[IndentingNewLine]",
    \(\(two =
        ListPlot[y,
          PlotLabel \[Rule] "\<Lamb Wave Group Velocity for Steel\>",

          PlotLabel \[Rule] "\<Lamb Wave Group Velocity for Steel\>",
          PlotRange \[Rule] {{0, 3500}, {0, 4000}},
          FrameLabel \[Rule] {"\<Frequency(kHz)\>", "\<Group \
Velocity(m/s)\>"}];\)\), "\[IndentingNewLine]",
    \(\)}], "Input"]
},
FrontEndVersion->"4.2 for Microsoft Windows",
ScreenRectangle->{{0, 1024}, {0, 685}},
WindowSize->{1016, 651},
WindowMargins->{{0, Automatic}, {Automatic, 0}}
]

(*******************************************************************
Cached data follows.  If you edit this Notebook file directly, not
using Mathematica, you must remove the line containing CacheID at
the top of  the file.  The cache data will then be recreated when
you save this file from within Mathematica.
*******************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1754, 51, 2164, 41, 470, "Input"]
}
]
*)



(*******************************************************************
End of Mathematica Notebook file.
*******************************************************************)

~
~


  • Prev by Date: Re: Newbie question about the behavior of NMaximize
  • Next by Date: Re: Re: Courier New Button, selecting cells without brackets
  • Previous by thread: Fitting multiple data