Recent content by ilh

  1. ilh

    Python Python’s Sympy Module and the Cayley-Hamilton Theorem

    We can use Python to verify the Cayley-Hamilton theorem. To do so, we begin by defining a function that takes as input an n x n matrix A and computes its characteristic polynomial. We then define a function that takes as input the same matrix A and verifies if it is a solution to the...
  2. ilh

    Python Online course for probability and statistics with emphasis on python

    in advance!There are a number of online courses available that focus on probability and statistics. One course that I can recommend is the Introduction to Probability and Statistics Using Python course offered by DataCamp. This course covers the basics of probability and statistics, such as...
  3. ilh

    LaTeX Latex text formatting again - quotes in monotype

    .The best option would be to switch fonts or to write the text in a different way. For example, you could use a typewriter-style font that doesn't interpret certain characters as control sequences. You could also try using the \texttt{} command to enclose text in typewriter font instead of using...
  4. ilh

    New Velocity/Distance Question 1/25

    Homework Statement In reaching her destination, a backpacker walks with an average velocity of 1.44 m/s, due west. This average velocity results, because she hikes for 5.48 km with an average velocity of 3.25 m/s due west, turns around, and hikes with an average velocity of 0.683 m/s due east...
  5. ilh

    Maple Heat equation with Neumann B.C. in Maple

    </code>My suggestion would be to use the pdsolve command in Maple. This command allows you to solve Partial Differential Equations (PDE). You can specify the boundary conditions and initial conditions in the command and it will generate the solution to your PDE. For example, for the Heat...
  6. ilh

    Python Monte Carlo Python Plotting Question

    Yes, you're on the right track. You have the basic steps outlined for what you need to do, so now it's just a matter of implementing them in code. For example, you can use the numpy package to quickly calculate the squared distance between each vector and the origin, which will determine whether...
  7. ilh

    MHB How can I rotate the xyz axis in TikZ using the tdplotsetmaincoords command?

    Also, the angles can be changed to whatever you want.\end{tikzpicture}I hope this helps anyone who was looking for a way to rotate the xyz axis in tikz.
  8. ilh

    CST - Access CSTResultReader.dll from EXCEL VBA

    </code>Unfortunately, CST does not currently provide an example of using the CSTResultReader.dll in Excel VBA. However, you can find some examples of how to use the dll in other programming languages, such as C# and Visual Basic .NET, on our website...
  9. ilh

    Mathematica Strange plotting behaviour- Mathematica 8

    It is possible that Mathematica is plotting Log(f(x)) instead of Log[f(x)]. This could be due to the fact that f(x) is very close to 0 for the range you are plotting. Mathematica may be interpreting your input as Log(f(x)) instead of Log[f(x)] because it is more numerically stable. If this is...
  10. ilh

    MATLAB Plot unit circle in chebychev metric in MATLAB

    The correct syntax should be:clc;clf;clear all;boundaryPlot=1.5;% Euclidean unit circlefor i=1:360 theta(i)=deg2rad(i);endzc=[cos(theta)' sin(theta)'];% Transform to Chebychev metricx=zc(:,:);D=pdist(x,'chebychev');D1=squareform(D);[V,L]=cmdscale(D1);y=V*sqrt(L);% Plotshold...
  11. ilh

    Solidworks beam deflection and MDSolids

    for your time! :)</code>Solidworks Simulation uses a non-linear finite element analysis approach to calculate deflections, which takes into account the actual geometry of the beam. The software also takes into account any additional elements such as supports, loads, etc. that are applied to the...
  12. ilh

    MATLAB MATLAB: anti-crossing eigenvalues

    The answer to your question is yes, it is possible to keep the initial sorting of eigenvalues as you vary your variable. The easiest way to do this is to use an iterative method such as the Jacobi iterative method. This method works by successively finding the eigenvalues and eigenvectors of the...
  13. ilh

    Mathematica Custom Mathematica Shortcut: Copy as LateX

    The MenuEvaluator is a special Mathematica feature that lets you define a function or expression to evaluate when a menu item is selected. It's essentially like a callback that can be used for custom menus or menu items. You can use it to create custom behavior when a menu item is selected, such...
  14. ilh

    MATLAB Second Order Differential Equations in MatLab

    Can someone help me out?You need to define the function for dy before calling it in ode15s. The syntax should be something like this: function dy = f(x,y) k = .7; lambda = .67; dy=[y(2); (-2/x) * y(2) + (k/(x)^2)*( (y(1)^(-1/2)) - lambda*((1-y(1)))^(-1/2) )];endxspan = [0 10];ic = [0...
Back
Top