0
votes
0answers
4 views

Taylor series/expansion

I want to make a second-order Taylor series expansion around point (x,y) = (1, Pi) of the function f(x,y)=x^2*Sin(xy/2) Plot inclusive
0
votes
1answer
7 views

A problem with Manipulate

I have: ...
2
votes
0answers
10 views

Why should we make sure the calculated MD5 is of length 32?

I see when people write code on calculating MD5, (even in the documentation), they write like this: IntegerString[Hash[something, "MD5"], 16, 32] But I think ...
1
vote
2answers
34 views

How to write absolute value and square root in one equation?(runge kutta)

I got some problem when I run my program. It hangs when I run it. This is my coding for runge kutta Geometric mean(RKGM). ...
0
votes
0answers
22 views

Generating vectors with restrictions on a lattice

Suppose we are given a certain adjacency matrix that contains the information for a given lattice. I want to generate a configuration of vectors that satisfy a restriction. Specifically, if I have ...
0
votes
2answers
50 views

Function works only after printing variables inside [on hold]

For the input: pickTwoParts[{a, b, c}], the right output is: {{a, a b, a c, b, b c, c}, {b c, c, b, a c, a, a b}}. I am getting that output, but only after uncommenting the lines: ...
1
vote
1answer
42 views

How to use Table to assign values to variables in a list?

I'm trying to do the following: R = {a, b, c, d, e, f, g, h, i}; Table[R[[n]] = RandomInteger[{0, 20}], {n, 1, Length[R]}] My intention is to assign a random ...
0
votes
0answers
13 views

how t calculate the area of a rectangle intersected by an arc [on hold]

I need to make two calculations: Determine the arc that is needed between the two intersection points of a rectangle. Knows: Size of the rectangle, location of the intersection points. I want to ...
4
votes
3answers
128 views

How to find max difference with the same x between two functions?

For example, I have function TF[y_] = 2 / Pi * ArcSin[y] And I have CDF: ...
-1
votes
1answer
20 views

Problem with ReadList, record separator is not working

I have a list of the following form: ...
1
vote
1answer
28 views

Trying to find solution for system of ordinary differential Equations [on hold]

I've got 2 functions: A'[t] = (0.5/(1 + (B/k1)^n)) - 0.2*A B'[t] = (1/(1 + (A/k2)^n)) - 2*B with conditions of ...
4
votes
1answer
42 views

Rotated strings wrapping inside Item of Pane, vs their ItemSize or “ImageSize” spec

Why in this: Grid[{{Item[Rotate["this is a long text example", Pi/2], ItemSize -> {2, 10}]}}, Frame -> True] or this ...
1
vote
0answers
42 views

Manipulate - 3 sliders for a list of 3 elements

I'm trying to create a slider for a list of 3 elements. I know that I can create a 2D slider for a list of 2 elements and it's impossible to create a 3D slider for a list of 3 elements. So, I just ...
2
votes
2answers
46 views

FindDistributionParameters gives an error for a mixture of user defined sinh-arcsinh distributions

I have some data (1593 values). I first binned it using the Knuth rule and fitted a function that is a linear combination of two sinh-arcsinh functions. I then ...
2
votes
1answer
45 views

How to hide and show graphics within Show[] function (in Manipulate wrapper)

There is a well documented way to "Dynamically Hide and Show Plots" (link). In the example 'Opacity' option is effectively used. Is there an efficient way to make the same functionality with "Show"? I ...
2
votes
2answers
39 views

How to write a function that returns the combined output of several built-in functions

I am trying to make a module that takes a Boolean function, and prints the following: the function's truth table the function's NOR epxression the function's minimal Disjunctive normal form So far ...
-2
votes
0answers
75 views

Mathematica's steps towards the result of a definite integral

I am interested in this definite integral: $$ \eqalign{\int_0^\infty {x^2 \log(1-e^{-x})}\; dx\cr } $$ That is: ...
0
votes
0answers
44 views

Goldbach Conjecture …Every even integer > 2 is the sum of two prime numbers.Find a program in mathematica to solve this problem [on hold]

Every even integer > 2 is the sum of two prime numbers and Each odd integer > 5 is the sum of three prime numbers USING THE SIEVE OF ERATOSTHENES....
3
votes
1answer
48 views

ANOVA test on dataset

I have a dataset with 3 groups and two variables. I want to do ANOVA test on the three groups for each variable. Does anyone know how to do this? ...
2
votes
1answer
51 views

Map with multiple arguments

I have a function f[m,n] and a list of arguments args = {{m1,n1},{m2,n2},{m3,n3},{m4,n4}, ...} that I want to apply to it. I ...
0
votes
0answers
14 views

Recurrent equations [duplicate]

I want to make a relation to show the first 7 elements that don't have the number 7 in it. So far i know how to make it to show the first 7 elements with RecurrenceTable[{a[n + 1] == 7 a[n] + a[n], ...
3
votes
1answer
71 views
0
votes
1answer
62 views

nonlinear differential equation

For such a equation $$-y''(x) + x^2\cdot y(x) - |y(x)|^2\cdot y(x) = 0$$ with initial conditions: $y(-500) = 0$ and $y(500) = 0$. I write in mathematica ...
5
votes
2answers
136 views

Filtering of an unwanted frequency through a Fourier Transform

I have a data set with evenly spaced data points. The plot is frequency vs. intensity. The overall shape of the plot is an upwards curve into a plateau, this cannot be seen in the data as this is an ...
9
votes
1answer
157 views

How can I make FilledCurve smoother?

In How can I generate and randomly assign color to annular sectors? J.M. showed an interesting way to create a sector graphic using FilledCurve. Unfortunately it ...
0
votes
0answers
48 views

Eigenvalues of the nonlinear Schrödinger equation [on hold]

As an exercise I have to deal with a nonlinear time independent Schrodinger equation eigenvalues and eigenfunction, ...
0
votes
0answers
20 views

GraphicsRow - vertical axis ratio [on hold]

I have following code: ...
-3
votes
0answers
20 views

physics - swing of the pendulum [duplicate]

I should visualize a swing of the pendulum. I should write a function springmass[z, nzigzag], which visualize the spring (line) and the swinging weight (rectangle) ...
2
votes
1answer
50 views

Forcing a locator button to remain on the surface of a sphere

This question may or may not be possible and might be a hard one to answer. Suppose that I have a sphere centered at the point (1,2,-1) with radius 3. Is it possible to place a locator button on the ...
9
votes
1answer
117 views

Does Mathematica have an equivalent of C's nextafter?

In C (and many other programming languages), there is a function double nextafter(double x, double y) which takes two (IEEE 754) floating-point numbers and ...
10
votes
2answers
310 views

Does Mathematica have an equivalent of Python's float.as_integer_ratio?

The Python programming language has a float.as_integer_ratio(x) function which exactly converts an IEEE 754 floating-point number into a numerator/denominator pair ...
1
vote
1answer
63 views

Changing from Dashed to Solid

I have: Graphics[{ Blue, Thick, Arrow[{{0, 0}, f1}], Arrow[{{0, 0}, f2}], Red, Arrow[{{0, 0}, f1 + f2}], Dashed, Blue, Line[{{-9, 0}, {12, 0}}] }] ...
1
vote
1answer
43 views

How to reduce trigonometric expressions under special conditions

For the following problems I used "FullSimplify" and "TrigReduce" but I manage to reduce more ...
1
vote
1answer
62 views

Add a portion of a unit circle

Consider: ...
7
votes
2answers
73 views

Undo history cleared after removing comments - bug?

If I've written some code followed by a comment, like this: x(*y*) and I remove the comment by first removing the right delimiter and then the left, my undo ...
3
votes
1answer
64 views
0
votes
0answers
57 views
1
vote
1answer
65 views

Diff eqs can be solved?

I'm trying to solve a pair of coupled differential equations, but am having trouble making DSolve evaluate my equations. ...
1
vote
1answer
51 views

Import a jpeg file and a mov file and display them side by side

I am planning to use Mathematica for a presentation. In one of the slides I need to place a jpeg file side by side to a mov file. ...
0
votes
0answers
37 views

Create graph K5, delete 2 edges and 2 vertex, create adjacency matrix [duplicate]

I need help about this problem. I should create graph K5, delete 2 edges and 2 vertex from it and from the new graph create adjacency matrix. I have poor knowledge and i don't need anyone to solve the ...
1
vote
2answers
77 views

Why doesn't Plot draw function within prescribed range?

I have a function: TheoreticalFunction[x_] = 2 / Pi * ArcSin[x] And trying to plot its derivative: ...
0
votes
0answers
46 views

Sign of a symbolic derivative for ranges of parameters

i need to know the sign of the following expression ...
-3
votes
0answers
76 views

Creating truth tables

Hello guys i need help about this problems: I should write module in mathematica which receive function f. Module should write on screen: -Truth table of function f -Boolean expression which contains ...
2
votes
2answers
140 views

Gradient in a plotstyle

I'm trying to replicate the figure below. Now a nice first approach to do this is by using Mathematica, by making some kind of contourplot with circles and just add a gradient to the contourstyle. Now ...
0
votes
1answer
59 views

Creating Matrix,Inverted and Upper Triangulate inside Module

I was trying to fit this into a module but I didn't have any luck. And for some reason it won't Inverse the Matrix. Here's the code: Input: ...
0
votes
0answers
40 views

Issue with combining plots using Show [on hold]

I need to combine two plots, but I can't seem to find a proper way! I tried Show, but I just get an error Show::gcomb: Could not combine the graphics objects. ...
0
votes
0answers
28 views

Recurrence equation [duplicate]

I need to print the first 10 elements from the string which is a solution of a recurrence equation. If there is a 5 in the elements of the string, then that element should not be printed. For ...
2
votes
1answer
44 views

Transformation syntax with shortcuts to a more explicit syntax for an equation

I would like to write the following code line without the signs @#%^&*?! Sequence @@ (XMLNote[#1, m] &) /@ attributes I have made this code but it seems ...
-3
votes
0answers
88 views

Swing of the pendulum [duplicate]

I would like to visualize a swing of the pendulum. I want to write a function springmass[z, nzigzag], which will draw the spring (line) and the swinging weight ...

15 30 50 per page