1
vote
0answers
39 views

Can mathematica be configured to auto pair different parenthese?

In DrRacket, the editor can auto pair different parentheses, for example code like (let [(x 3 and whether press ) or ...
3
votes
3answers
120 views

Finding largest Range in a list

In a list of positive integers, I would like to find the largest n such that Range[n] is a subset of the list. So for example ...
0
votes
1answer
31 views

Loops over multiple variables (negative i_min)

Can someone explain why i ranges from -3 to 3 in the output of Do[Print[{i, j}], {i, -3, 3}], but not in Do[Print[{i, j}], {i, -3, 3},{j,-i,i}]? I was thinking for the second input I would get ...
6
votes
3answers
293 views

Better answer to Santa's riddle about sum of a number's divisors?

I was hoping to find an elegant solution to this riddle, using only a line or two of Mathematica: Santa Claus was telling one of his elves: "If I multiply the age of three of my reindeer, I get ...
13
votes
0answers
365 views

Save as pdf broken in version 10.0.2?

It looks like the save as pdf is broken after I update to version 10.0.2. The labels in the plot become a mess. Are there ways to fix it? The Export function works ...
0
votes
2answers
52 views

I need to make and manipulate a group ( the quaternion)

I am trying to define a group and use it to defined its classes, its character table, and irreducible representations. I am having trouble finding code to define a group and use it.
3
votes
1answer
36 views

Defining the value of variable after expansion

I have an initial equation defined as: x = Subscript[a, 0] + (1 - r^2)/Sqrt[1 + r^2 - 2*r*Cos[\[Theta]]]; I want to taylor expand this after subbing in: ...
5
votes
1answer
86 views

Solve a differential equation with an integral inside?

I am trying to solve this differential equation in Mathematica: y'[t]+integral from 0 to t of y[x]dx =e^(-t) where y[0]=0. Is this possible?
2
votes
2answers
94 views

How would I rotate a table of Cuboids around the y axis?

Currently I can print out this using Graphics3d: Here's the code: ...
0
votes
0answers
50 views

How to find only the negative Imaginary solutions and positive Real solutions?

Following this post Help Please : Error in plotting the solutions of FindRoot , I want to plot only the negative Imaginary solutions Wi(K)<0 and positive Real solutions Wr(K)>0. Please, how do it? ...
0
votes
0answers
16 views

Simulating from CopulaDistribution

I am currently using CopulaDistribution and have been generating RandomVariates from this distribution. Say my code looks sort of like this (this is much simpler) ...
4
votes
2answers
138 views

Create an image showing max intensities in a set of images?

I would like to use a set of two images with the same color scheme (img1 and img2) to produce a new image (...
11
votes
1answer
204 views

10.0.2 mapping Association to Dataset warning

In 10.0.2 ExampleData[{"Dataset", "Titanic"}][All, <| "gender" -> #sex|> &] Outputs the expected result, but also throws: MapAt::partw: Part ...
0
votes
1answer
26 views
3
votes
2answers
59 views

BarLegend using Function that uses Blend

I'm sorry if this is a duplicate, but I don't even know how to look for it. I had this line of code that worked on a Notebook I wrote on Mathematica 9.0: ...
6
votes
1answer
159 views

Did 10.0.2 break some forms for named slots?

Since 10.0.2 some code that previously worked using named slots fail in very particular circumstances. Attchd screenshot shows the issue w/ a particular Dataset ...
2
votes
1answer
30 views

How shortening argument test when declaring functions?

When defining some functions which depend in many arguments sometimes we need to include question Q constraints to diminish processing time. My question is simple, there is a way to shorten a long ...
6
votes
1answer
93 views

Customize keybindings without modifying files in the installation directory

I would like to know if I can modify key bindings without being able to modify the KeyEventTranslations.tr in the installation directory. So maybe putting another one in my home dir and ...
0
votes
1answer
47 views

About choosing the specific number for a function

If I have many numbers in here {{A,B},{C,D},{E,F}.....} And I want choose the B,D,F,....(the second number) to run a function y=f(x), where x=B,D,F.... Then I need to check if y=f(B) is equal to A or ...
2
votes
2answers
60 views
3
votes
1answer
33 views

How can I make the script level styles imitate TeX?

In math mode in $\TeX$, there are four styles that are used to determine what font will be used to typeset parts of a formula. In decreasing hierarchical order, they are, with default font size in ...
2
votes
4answers
122 views

Invisible graph edges

I have a fairly sparse adjacency matrix for which I can draw the graph. Right now, two nodes $i$ and $j$ are connected, or not ($w_{ij} \in \{0,1\}$). However, I have come up with a way to define new ...
1
vote
3answers
65 views

GatherBy based on condition imposed on index variable

Excuse me. This might be user specific question but I need your help. I have an indexed data, where positive integers are used for indexing data. I am trying to group data putting condition on index ...
1
vote
1answer
45 views

simplification issues

The first are from an old paper, dealing with the evaluation of elastic Green function in a transversely isotropic medium (Hill 1964). ...
2
votes
1answer
56 views

Anyone knows the algorithm used by NullSpace function?

NullSpace function gives a list of vectors that forms a basis for the null space of the input matrix. When the rank of the input argument matrix $M_{m\times n}$ is ...
0
votes
1answer
32 views

assign different values to the function of ContourPlot

I have a H function which describe the location of the same temperature. I can draw the function with ContourPlot. But the real value of the temperature needed to be calculated separately. I need to ...
0
votes
0answers
50 views

Ideas for introduction to Mathematica on Raspberry Pi [closed]

I'm looking for ideas for demonstrating the capabilities of Mathematica to people who haven't used it (this will be on R-Pi but needn't be anything specific to that). I don't mean anything ...
4
votes
0answers
51 views

Why is this ImplicitRegion empty?

I'm having trouble understanding why the following RegionPlot code produces results: ...
2
votes
3answers
226 views

Import data from first/last 100 rows of a file

If one wants import data from the first three rows of a file "myfile.data", one can use the command Import["myfile.data",{"Data",{1,2,3},All}]; However, if I ...
0
votes
1answer
37 views

Finding a solution when there are two piecewise functions at play

The goal is to mathematically figure out where is the point when the both of the diagrams are the same distance to the Y-axis. The solution to such a problem can be obtain quite easily by just ...
0
votes
1answer
26 views

Basic stylesheet customization of “Text” cells not working for me

I have learned much from other posts about stylesheet customization. Here is my procedure: Step 1 - Open a new, empty document. Step 2 - Format..Edit Stylesheet. I have added the following ...
0
votes
0answers
41 views

Stylesheet Customization improved in Mathematica 10?

I have been struggling with customization of stylesheets in Mathematica 8. Other users have commented on its byzantine quirks. Before justifying an upgrade to Mathematica 10, I need to ask if the ...
1
vote
0answers
42 views

Apart for complex roots?

Let p[x] be a polynomial in x and consider the partial fraction decomposition of 1/p[x]. ...
11
votes
1answer
172 views

What does f_[whoCalled]^:=f really mean?

I came across the following post by John Doty in this Google Groups discussion: On Friday, January 11, 2013 8:23:16 PM UTC-7, amzoti wrote: It is clear the Mathematica uses Lisp as one ...
-1
votes
0answers
32 views

How to use ito calculus in mathematica for multiple SDEs

I have following SDE's dS1 = mu1 S1 + sigma1 S1 dW1 dS2 = mu2 S2 + sigma2 S2 dW2 E[dW1 dW2] = rho This can be extended to multi asset case also where we have ...
1
vote
2answers
128 views

Only show part of a cube below an intersecting plane

I plot a cube and a plane. I just want to show the part below the plane. The code: ...
-1
votes
0answers
36 views

Watching recursion

I enter: Clear[f]; f[n_] = n f[n - 1]; f[1] And get the response: $RecursionLimit::reclim: Recursion depth of 1024 exceeded. >> Now, I think what happens is ...
0
votes
0answers
24 views

Find a positive integer x - primite root with mod p [migrated]

So I am studying for finals and I am not able to solve the problem: Let $p=3∗2^{11484018}−1$ be a prime with 3457035 digits. Find a positive integer $x$ so that $2^x \equiv 3 \mod p$ Any guidance ...
0
votes
2answers
42 views

How to ask for numbers that are relatively prime? [closed]

How do I run a computation on wolfram alpha that returns a list of numbers that satisfy an expression. For example gcd(k,24)=1, k=1..23 Given that, I want it to ...
0
votes
3answers
72 views

choose any number e that is relatively prime to n

I try to write a command that means choose any number e that is relatively prime to n, like e^n [Congruent] 1 (mod n), but it didn't give me a value of e. e^n [Congruent] 1 (mod n)
1
vote
1answer
33 views

Having trouble using different options with GraphPlot [closed]

I am extremely new to Mathematica and I am trying to plot some graphs. GraphPlot[{1->2, 2->3, 3->1}] works just fine. But as soon as I try to use ...
2
votes
1answer
103 views

How to use slots and patterns to reduce repetitive calculation?

This is kind of complicated... How can we make MMa calculate values of a function before doing multiple pattern or slot substitutions? Answers to similar questions didn't cover the case where the ...
3
votes
1answer
222 views

A bug fix to mathematica 10.0.1.0

There is a bug in the Wolfram Symbolic Transfer Protocol Development in C (Windows). I described it in the next answer by myself, from which I summarize: One cannot successfully compile the ...
2
votes
2answers
107 views

how to extract the string using regular expressions

I have the list : a1 = {"struct name1 {","struct name2{","struct name3{","struct name4{", "struct name5{","struct lastStruct{"} I tried to extract the ...
2
votes
3answers
85 views

Customizing the order of appearance of legends in PlotLegends

I have a graph with four curves and I want to custom order their appearance in the legend. In particular, in the graph below, ...
0
votes
2answers
83 views

Graphic solution lagrange multiplier (cant get one)

I need to find the maxima and minim of a function. I did analytically with no problem but now I need to show in a graphic the intersection of the functions. My function is: ...
6
votes
0answers
39 views

Setting up tunnel to access compute nodes behind private LAN via front-end

Context I find the front end on macos way more convenient and I would like to keep my notebooks on my macbook. On the other hand, I have access faster multi-core linux machines behind a LAN. Hence I ...
8
votes
2answers
252 views

Water Hammer - Numerically solving system of PDEs

I'm trying to use Mathematica to solve the water hammer effect. ...
0
votes
0answers
36 views

Use Solve on a column vector while taking the derivative

I have the vector Y defined below. I would like to solve for $\frac{\partial Y}{\partial cd} = 0$. If I execute Solve[D[Y,cd]==0,cd], Mathematica runs for a long ...
0
votes
1answer
71 views

Parametric Plotting

I am trying to make a parametric plot of the x and y displacements of a vibration problem. When trying to plot the parametric curve won't show up.

15 30 50 per page